N=input();s="" while-~N:s=chr(N%26+65)+s;N=N/26-1 print s