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