n = int(input()) s = chr(65 + n % 26) while n >= 26: n = n//26 -1 s += chr(65 + n%26) print(s[::-1])