#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  string s;
  cin >> s;
  char c = s.back();
  string ans;
  if (c == '2' || c == '4' || c == '5' || c == 7 || c == '9')
    ans = "hon";
  else if (c == '3')
    ans = "bon";
  else
    ans = "pon";
  cout << ans << endl;
  return 0;
}
