import Foundation

var n = Int(readLine()!)! - 1
var c = [Int]()

while n >= 26 {
    c += [n % 26]
    n /= 26
}

c += [n % 26]
c[0] += 1

print(String(c.reversed().map{ Character(UnicodeScalar($0 + 96)!) }))
