N=int(input()) le=1 while 26**le<=N: N-=26**le le+=1 ans="" for i in range(le): ans+=chr(N%26+65) N//=26 ans=ans[::-1] print(ans)