#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a % 100 % 10 == 2 || a % 100 % 10 == 4 || a % 100 % 10 == 5 ||
      a % 100 % 10 == 5 || a % 100 % 10 == 9) {
    cout << "hon" << endl;
  } else if (a % 100 % 10 == 0 || a % 100 % 10 == 1 || a % 100 % 10 == 6 ||
             a % 100 % 10 == 8) {
    cout << "pon" << endl;
  } else if (a % 100 % 10 == 3) {
    cout << "bon" << endl;
  }
}
