#include <bits/stdc++.h>
using namespace std;

int main () {
  int N;
  cin >> N;

  vector<int> data1 = {2, 4, 5, 7, 9}
  vector<int> data2 = {0, 1, 6, 8}
  vector<int> data3 = {3}

  for (int i = 0; i < 5; i++){
    if (N % 10 == data1.at(i)){
      cout << "hon" << endl;
      break;
    }
  }

  for (int i = 0; i < 4; i++) {
    if (N % 10 == data2.at(i)) {
      cout << "pon" << endl;
    }
  }

  if (N % 10 == data3.(0)) {
    cout << "bon" << endl;
  }
}
