#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define _GLIBCXX_DEBUG
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
const ll INF = 9223372036854775807;

int main() {
  int n;cin >> n;
  n %= 10;
  if(n == 3) cout << "bon" << endl;;
  else if(n == 0||n == 1) {
    cout << "pon" << endl;
  }
  else if(n == 6||n == 8) {
      cout << "pon" << endl;
  }
  else cout << "hon" << endl;
}