#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int tmp = n % 10;
  if (tmp == 2 || tmp == 4 || tmp == 5 || tmp == 7 || tmp == 9) puts("hon");
  if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) puts("pon");
  if (tmp == 3) puts("bon");
  return 0;
}
