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