#include <bits/stdc++.h>
using namespace std;
using ll = long long int
#define vec vector 
#define rep(i, N) for(int i = 0; i < (int)(N);i++)
#define elif else if

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