class Solution(object):
def convertToTitle(self, columnNumber):
"""
:type columnNumber: int
:rtype: str
"""
ans = ""
while columnNumber:
ans += chr(ord("A") + (columnNumber - 1) % 26)
columnNumber = (columnNumber - 1) / 26
return ans[::-1]