 #include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define pb push_back
#define forr(i,x,y) for(int i=x;i< y;i++)
#define sci(x) int x; cin>>x;
#define scii(x,y) int x,y; cin>>x>>y;
#define sciii(x,y,z) int x,y,z; cin>>x>>y>>z;
#define tc(x) sci(x); while(x--)
int main(){
    int n;
    cin>>n;
    int x =n%10;
    if(x==2||x==4||x==5||x==7||x==9)cout<<"hon"<<endl;
    else if(x==0||x==1||x==6||x==8)cout<<"pon"<<endl;
    else cout<<bon<<endl;
    return 0;
}