
fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    let last = s.chars().rev().nth(0).unwrap();
    let num = last.to_string().parse().unwrap();
    match num {
        0 => println!("pon"),
        1 => println!("pon"),
        2 => println!("hon"),
        3 => println!("bon"),
        4 => println!("hon"),
        5 => println!("hon"),
        6 => println!("pon"),
        7 => println!("hon"),
        8 => println!("pon"),
        9 => println!("hon"),
        _ => println!(""),
    }
}