#include <bits/stdc++.h>
int main() {
  int n, x1;
  scanf("%d", &n);
  x1 = n % 10;
  if (x1 == 2 || x1 == 4 || x1 == 5 || x1 == 4) {
    printf("hon");
  } else if (x1 == 0 || x1 == 1 || x1 == 6 || x1 == 8) {
    printf("pon");
  } else
    printf("bon");
  return 0;
}
