#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;



int main() {
  string n;
  cin >> n;
  int t;
  if(n.size()==3) t=stoi(n[2]);
  else if(s.size()==2) t=stoi(n[1]);
  else t=stoi(n[0]);

  if(t==3) cout << "bon" << endl;
  else if (t==0||t==1||t==6||t==8) cout << "pon" << endl;
  else cout << "hon" << endl;

  return 0;
}