#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  int x = 0;
  if (n >= 10) {
    x = n % 10;
  } else if (n >= 100) {
    x = n % 100;
  } else {
    x = n;
  }
  string s;
  switch (x) {
    case 3:
      s = "bon";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      s = "pon";
      break;
    default:
      s = "hon";
      break;
  }
  cout << s << endl;
}
