program therefore;
var
    n : string;
    x : char;
begin
    readln(n);
    x := n[length(n)];
    if (x = '2') or (x = '4') or (x = '5') or (x = '7') or (x = '9') then 
        writeln('hon')
        else if x = '3' then
            writeln('bom')
                else writeln('pon');
end.