#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ans = n % 10;
  int a[6] = {2, 4, 5, 7, 9};
  int b[5] = {0, 1, 6, 8};
  int c = 3;
  int flag = 0;
  if (ans == 3) {
    cout << "bon\n";
    flag = 1;
  }
  if (!flag) {
    for (int i = 0; i < 5; i++) {
      if (ans == a[i]) {
        cout << "hon\n";
        flag = 1;
        break;
      }
    }
  }
  if (!flag) {
    for (int i = 0; i < 4; i++) {
      if (ans == b[i]) {
        cout << "pon\n";
        break;
      }
    }
  }
  return 0;
}
