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