#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int num1[5] = {2, 4, 5, 7, 9};
  int num2[4] = {0, 1, 6, 8};
  cin >> N;
  for (int i = 0; i < 5; i++) {
    if (N % 10 == num1[i]) {
      cout << "hon";
      exit(1);
    }
  }
  for (int i = 0; i < 4; i++) {
    if (N % 10 == num2[i]) {
      cout << "pon";
      exit(1);
    }
  }
  cout << "bon";
}
