#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
using namespace std;
string s;
vector<int> a = {2, 4, 5, 7, 9};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> s;
  int b = s[0] - '0';
  for (int i = 0; i < a.size(); i++)
    if (a[i] == b) {
      cout << "hon";
      return 0;
    }
  if (b == 3)
    cout << "bon";
  else
    cout << "pon";
  return 0;
}
