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