#include<bits/stdc++.h>
using namespace std;
int main()
{

long long int n;
cin>>n;
int q=n%10;
if(q==3)
cout<<"bon"<<endl;
else if(q==0||q==1||q==6||q==8)
cout<<"pon"<<endl;
else
cout<<"hon"<<endl;
}