N=int(input())+1 S='' while N: S=chr((N-1)%26+65)+S N=(N-1)//26 print(S)