#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  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')
    cout << 'hon' << endl;
  else if (s[s.size() - 1] == '0' || s[s.size() - 1] == '1' ||
           s[s.size() - 1] == '6' || s[s.size() - 1] == '8')
    cout << 'pon' << endl;
  else
    cout << 'bon' << endl;
  return 0;
}
