#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  if (n[n.size() - 1] == 2 || n[n.size() - 1] == 9 || n[n.size() - 1] == 7 ||
      n[n.size() - 1] == 5 || n[n.size() - 1] == 4)
    cout << "hon";
  else if (n[n.size() - 1] != 3)
    cout << "pon";
  else
    cout << "bon";
}
