#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
map<int, string> mp;
int main() {
  int n;
  cin >> n;
  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[n % 10] << endl;
  return 0;
}
