#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e16 + 1;
const long long N = 2e5 + 5;
const long long mod = 1e9 + 7;
const long double eps = 1E-7;
int res;
int main() {
  string s;
  cin >> s;
  if (s[s.size() - 1] == '3') {
    return cout << "bon", 0;
  }
  if (s[s.size() - 1] == '2' or s[s.size() - 1] == '4' or
      s[s.size() - 1] == '5' or s[s.size() - 1] == '7' or
      s[s.size() - 1] == '9')
    return cout << "hop", 0;
  else {
    return cout << "pon", 0;
  }
}
