
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
ll gcd(ll a , ll b) { return b==0?a: gcd( b, a%b); }
ll lcm(ll a , ll b) { return a/gcd(a,b) * b ; }
int main()
{
  ios::sync_with_stdio(false);cin.tie(0);
  //freopen("input.txt" , "r" , stdin );
  ll n;
  cin>>n;
  ll q = n%10;
  if(q==2 || q==4 || q==5 || q==7 || q==9 )
    cout<<"hon";
  else if(q==0 || q==1 || q==6 || q==8)
    cout<<"pon";
  else
    cout<<"bon";
  return 0;
}
