#include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y) {
  int mi, ma;
  ma = max(x, y);
  mi = min(x, y);
  if (ma % mi == 0) {
    return mi;
  } else {
    return gcd(mi, ma % mi);
  }
}
int main() {
  long ii, jj, kk;
  vector<int> a;
  int n, pon;
  cin >> n;
  pon = n % 10;
  switch (pon) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout << "hon" << endl;
      break;
    case 0:
    case 1:
    case 6:
      cout << "pon" << endl;
      break;
    case 3:
      cout << "bon" << endl;
      break;
  }
  return 0;
}
