#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double eps = 1e-8;
const int INF = 0x3f3f3f3f;
const long long LNF = 0x3f3f3f3f3f3f;
inline int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
inline long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
inline int lcm(int a, int b) { return a * b / gcd(a, b); }
int calc(int n) {
  int res = 0;
  while (n) {
    res = n % 10;
    n /= 10;
  }
  return res;
}
int main() {
  int n;
  cin >> n;
  int m = calc(n);
  if (m == 3)
    puts("bon");
  else if (m == 0 || m == 1 || m == 6 || m == 8)
    puts("pon");
  else
    puts("hon");
  return 0;
}
