#include <bits/stdc++.h>
#pragma GCC optimize(3, "Ofast", "inline")
using namespace std;
bool prime(int x) {
  int i;
  if (x < 2) return 0;
  for (i = 2; i * i <= x; i++) {
    if (x % i == 0) {
      return 0;
    }
  }
  return 1;
}
int main() {
  int a;
  cin >> a;
  if (a % 10 == 2 && a % 10 == 4 && a % 10 == 5 && a % 10 == 7 && a % 10 == 9)
    cout << "hon" << endl;
  else if (a % 10 == 0 && a % 10 == 1 && a % 10 == 6 && a % 10 == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
  return 0;
}
