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