#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const long long LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
map<int, string> mp;
int main() {
  mp[2] = "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";
  int N;
  cin >> N;
  int d = N % 10;
  cout << mp[d] << '\n';
}
