#include <bits/stdc++.h>
using namespace std;
void init() {
  cin.tie(0);
  cin.sync_with_stdio(0);
}
int fastpow(int a, int b) {
  int wynik = 1;
  while (b) {
    if (b & 1) wynik = (wynik * a) % 1000000007;
    a = (a * a) % 1000000007;
    b >>= 1;
  }
  return wynik;
}
bool odd(int n) {
  bool b = 1;
  int x = sqrt(n);
  for (int i = 2; i <= x; ++i) {
    if (n % i == 0) return false;
  }
  return true;
}
long long fact(int n) {
  long long fact = 1;
  for (int i = 2; i <= n; ++i) {
    fact *= i;
  }
  return fact;
}
long long sum(int n) { return ((n * (n + 1)) / 2); }
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
int main() {
  init();
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a;
  cin >> a;
  short b = a % 10;
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9)
    cout << "hon";
  else if (a == 3)
    cout << "pon";
  else
    cout << "bon";
}
