#include<bits/stdc++.h>
using  namespace  std;

int main()
{
    string t;
    cin>>t;
    int len=t.size()-1;
    if(t[len]=='3')
        cout<<"bon"<<nl;
    else if(t[len]=='0' || t[len]=='1' ||t[len]=='6' || t[len]=='8')
        cout<<"pon"<<endl;
    else cout<<"hon"<<endl;
    return 0;
}