#include <bits/stdc++.h>
#include <cmath>
#include <vector>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define INF 10000000
#define PI 3.141592653589793
using ll = long long ;
ll gcd(ll a, ll b) {
  if(b == 0) return a;
  return gcd(b, a % b);
}
ll lcm(ll a,ll b){
    ll g = gcd(a,b);
    return a / g * b;
}
template< int id > struct CompTupleBy
{
  template<class T> 
  bool operator()( const T& a, const T& b ) const {
    return std::get<id>(a) < std::get<id>(b);
  }
};


using namespace std;
using Graph = vector< vector<int> > ;


int main(){
    int n;
    cin >> n;
    int last;
    if (n <10){
        last = n;
    }else if (n < 100){
        last = n%10;
    }else{
        n %= 10;
        last = n %= 10;
    }
    if (last == 2 || last == 4 || last == 5 || last == 7 || last == 9 || ){
        cout << "hon" << endl;
    }else if (last == 3){
        cout << "bon" << endl;
    }else{
        cout << "pon" << endl;
    }
}