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