use competitive::prelude::*;

fn main() {
    input! {
        r: u32,
    }

    let ans = match r % 10 {
        2| 4| 5| 7 | 9 => "hon",
        0| 1| 6| 8 => "pon",
        _ => "bon"
    };

    echo!(ans);
}