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