#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long dig = n % 10;
  map<long long, string> mp;
  mp[0] = "pon";
  mp[1] = "pon";
  mp[6] = "pon";
  mp[8] = "pon";
  mp[3] = "bon";
  if (mp.find(dig) == mp.end())
    cout << "hon";
  else
    cout << mp[dig];
}
