#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  n %= 10;
  string str = "";
  switch (n) {
    case 2:
    case 5:
    case 7:
    case 9:
      str = "hon";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      str = "pon";
      break;
    case 3:
      str = "bon";
    default:
      break;
  }
  cout << str << endl;
  return 0;
}
