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