':type n: int
:rtype: str'

def convertToTitle(self, n):

    (result, dvd) = ('', n)
    while dvd:
        result += chr((((dvd - 1) % 26) + ord('A')))
        dvd = ((dvd - 1) / 26)
    return result[::(-1)]
