N=int(input()) ans="" def keisan(n_i): n=n_i//26 if n>=1: make_ans(n-1) if n>26: keisan(n) make_ans(n_i) return 0 def make_ans(n): global ans ans=ans+chr(0x41+int(hex(n%26)[2:],16)) keisan(N) print(ans)