def solve(n): digits = [] while n >= 26: digits.append(n%26) n = int(n / 26) - 1 digits.append(n) return "".join([chr(c + 0x41) for c in digits[::-1]]) if __name__ == "__main__": print(solve(int(input())))