n=input() p=26 s="" while n>=0: s=chr(n%26+65)+s n-=n%26+26 n/=p print s