import string N=int(input()) if N==1: print(A) exit() S='' i = 26 while N: S += string.ascii_uppercase[N%i] N -= (N%i) N//=26 print(S[::-1])