#include <bits/stdc++.h>

using namespace std;

int main() 
{
    int N;
    cin>>N;
    
    int temp=N%10;
    
    if(temp==2||temp==4||temp==5||temp==7||temp==9)
    {
        cout<<"hon"<<endl;
    }
    else if(temp==0||temp==1||temp==6||tempp==8)
    {
        cout<<"pon"<<endl;
    }
    else
    {
        cout<<"bon"<<endl;
    }
    
    
}