#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  map<int, string> mp;
  mp[2] = "hon";
  mp[4] = "hon";
  mp[5] = "hon";
  mp[7] = "hon";
  mp[9] = "hon";
  mp[0] = "pon";
  mp[1] = "pon";
  mp[6] = "pon";
  mp[8] = "pon";
  mp[3] = "bon";
  ll n;
  cin >> n;
  cout << mp[n % 10];
  return 0;
}
