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