import std;

void main() {
    int n; scan(n);
    int m = n % 10;
    if (m == 3) writeln("bon");
    else if ([0, 1, 6, 8].canFind(m)) writeln("pon");
    else writeln("hon");
}

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T=string)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readints = reads!int;
