#include <bits/stdc++.h>
int main(void) {
  int a;
  long int n;
  scanf("%ld", &n);
  a = n % 10;
  if (a == 2 or a == 4 or a == 5 or a == 7 or a == 9) printf("hon");
  if (a == 0 or a == 1 or a == 6 or a == 8) printf("pon");
  if (a == 3) printf("bon");
  return 0;
}
