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

int main()
{
  string s;
  cin>>s;
  ll x = s.length()-1;
    if(s[x]=='2'||s[x]=='4'||s[x]=='5'||s[x]=='7'||s[x]=='9')
    {
      cout<<"hon"<<'\n';
    }
    else if(s[x]=='0'||s[x]=='1'||s[x]=='6'||s[x]=='8')
    {
      cout<<"pon"<<'\n'
    }
    else
    {
      cout<<"bon"<<'\n';
    }
  return 0;
}
   