#include <bits/stdc++.h>
using namespace std;
int main() {
  string x;
  cin >> x;
  if (x.at(x.size() - 1) == 3)
    cout << "bon";
  else if (x.at(x.size() - 1) == 0 || x.at(x.size() - 1) == 1 ||
           x.at(x.size() - 1) == 6 || x.at(x.size() - 1) == 8)
    cout << "pon";
  else
    cout << "hon";
}
