n = int(input()) s = "" n=702 def f(): global n,s amari = n%26 s = chr(65+amari) + s if n<26: return else: n = n//26-1 f() f() print(s)