#include <bits/stdc++.h>
using namespace std;
constexpr int INF = 1e9 + 1;
constexpr long long LLINF = 1e18 + 1;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
void solve() {
  int n, num = 0;
  cin >> n;
  num = n % 10;
  if (num == 0 || num == 1 || num == 6 || num == 8) {
    cout << "pon" << endl;
  } else if (num == 3) {
    cout << "bon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
