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

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