let N = Int(readLine()!)!
let atoz = Array("abcdefghijklmnopqrstupwxyz")
var n = N
var result = ""
while n > 0 {
    result += String(atoz[(n-1)%26])
    n = Int(n / 26)
}
print(String(result.reversed()))
