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