#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int N;
  cin >> N;
  int temp = N / 100;
  if (temp == 0) {
    temp = N / 10;
    if (temp == 0) {
      temp = N;
    }
  }
  switch (temp) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      cout << "hon";
      break;
    case 3:
      cout << "bon";
      break;
    default:
      cout << "pon";
      break;
  }
  return 0;
}
