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