#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int N, p;
  cin >> N;
  p = N % 10;
  long long int a[6] = {2, 4, 5, 7, 9};
  long long int b[5] = {0, 1, 6, 8};
  for (int i = 0; i < 6; i++) {
    if (p == a[i]) {
      cout << "hon";
    }
  }
  for (int i = 0; i < 5; i++) {
    if (p == b[i]) {
      cout << "pon";
    }
  }
  if (p == 3) cout << "bon";
  return 0;
}
