N = int(input()) N += 1 ans = "" while N > 0: ans += alp[N % 26] N //= 27 print(ans[::-1])