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