n=int(input()) s='' while 1: s=chr(n%26+65)+s if n<26: break n=n//26-1 print(s)