#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e5;
const int INF = (int)1e9 + 7;
int main(int argc, char *argv[]) {
  int n;
  scanf("%d", &n);
  int a[] = {2, 4, 5, 7, 9};
  if (n == 3) {
    puts("bon");
    return 0;
  } else {
    for (int i = 0; i < 5; ++i) {
      if (a[i] == n) {
        puts("hon");
        return 0;
      }
    }
  }
  puts("pon");
  return 0;
}
