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