N=input();ans=[]
while N>25:
	ans.append(chr(65+N%26))
	N=N/26-1
print "".join((ans+[chr(65+N%26)])[::-1])