
#include<isotream>
using namespace std;
int main()
{
    long long int x;
    cin>>x;
    int y=x%10;
    if(y==2 or y==4 or y==5 or y==7 or y==9) cout<<"hon";
    else if(y==0 or y==1 or y==6 or y==8) cout<<"pon";
    else cout<<"bon";
}
