import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);
//aryread!string();
//auto PS = new Tuple!(long,string)[](M);
//x[]=1;でlong[]全要素1に初期化
void main()
{
    auto n = sread();
    // writeln(n[$ - 1]);
    switch (n[$ - 1])
    {
    case '2':
        writeln("hon");
        break;
    case '4':
        writeln("hon");
        break;
    case '5':
        writeln("hon");
        break;
    case '7':
        writeln("hon");
        break;
    case '9':
        writeln("hon");
        break;
    case '0':
        writeln("pon");
        break;
    case '1':
        writeln("pon");
        break;
    case '6':
        writeln("pon");
        break;
    case '8':
        writeln("pon");
        break;
    case '3':
        writeln("bon");
        break;
    default:

    }

}

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}

void arywrite(T)(T a)
{
    a.map!text.join(' ').writeln;
}
