#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  map<int, string> mp;
  mp[2] = mp[4] = mp[5] = mp[7] = mp[9] = "hon";
  mp[0] = mp[1] = mp[6] = mp[8] = "pon";
  mp[3] = "bon";
  cout << mp[s[0] - '0'];
}
