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

int main(){
  int n;
  cin >> n;
  if(n == 2 || n==4||N==5||n==7||n==9) cout << "hon" << endl;
  else if (n ==3) cout << "bon" << endl;
  else cout << "pon" << endl;
}
