import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) ans=chr(n%26+65) n//=26 while n: ans+=chr((n-1)%26+65) n//=26 print(ans[::-1])