let args = readLine()!.split(separator: " ").map { Int($0)! }

let n = args[0]

var result = ""
switch n % 10 {
case 2, 4, 5, 7, 9:
    result = "hon"

case 0, 1, 6, 8:
    result = "pon"
    
default:
    result = "bon"
}

print(result)