N=int(input()) a="" while N>=0: a=chr(N%26+65)+a N=(N//26)-1 print(a)