#include <bits/stdc++.h>
using namespace std;
mt19937_64 rang(
    chrono::high_resolution_clock::now().time_since_epoch().count());
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  int n;
  cin >> n;
  int r = n % 10;
  if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9)
    printf("hon");
  else if (r == 0 || r == 1 || r == 6 || r == 8)
    printf("pon");
  else
    printf("bon");
  return 0;
}
