use proconio::input;
use proconio::marker::Bytes;
fn main() {
    input!{N:Bytes,};

    let ans = match N.last().unwrap() {
        2|4|5|7|9 => "hon",
        0|1|6|8   => "pon",
        _         => "bon"           
    };

    println!("{}",ans);


}
