# coding: utf-8 #yuki_327 n=int(raw_input()) res="" while n>=0: res=res+chr(ord('A')+n%26) n=n/26-1 res=res[::-1] print res