#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int s[200005];
int main() {
  int n;
  scanf("%d", &n);
  while (n >= 10) {
    n /= 10;
  }
  if (n == 3) {
    puts("bon");
  } else if (n == 0 || n == 1 || n == 6 || n == 8) {
    puts("pon");
  } else {
    puts("hon");
  }
  return 0;
}
