#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string N, A;
  cin >> N;
  if (N[0] == 2 && N[0] == 4 && N[0] == 5 && N[0] == 7 && N[0] == 9) {
    A = "hon";
  } else if (N[0] == 0 && N[0] == 1 && N[0] == 6 && N[0] == 8) {
    A = "pon";
  } else {
    A = "bon";
  }
  cout << A << endl;
}
