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