n = int(input())+1 s = "" while n > 0: s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[n%26] + s n //= 26 print(s)