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