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