#include <bits/stdc++.h>
using namespace std;
const long long INF = 1001001001;
const double PI = 3.141592653;
const long long sosu = 1000000007;
int z(int a, int b) {
  if (a > b)
    return a - b;
  else
    return b - a;
}
int main() {
  int n;
  cin >> n;
  int a = n % 10;
  if (a == 3) {
    cout << "bon" << endl;
  } else if (a == 0 || a == 1 || a == 6 || a == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
