#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;

int main(){
  ll N;
  cin >> N;

  N %= 10;

  if(N == 3){
    cout << "bon" << endl;
  } else if((N == 0) || (N == 1) || (N == 6) || (N == 8)){
    cout << "pon" << end;
  } else{
    cout << "hon" << endl;
  }
  
  return 0;
}
