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