n=int(input()) s="ABCDEFGHIJKLMNOPQRSTUVWXYZ" out="" n+=1 while n: out=s[n%26-1]+out n=(n-1)//26 print(out)