#include <bits/stdc++.h>
int main(void) {
  int number;
  if (number <= 0 || 1000 <= number) {
    return 1;
  }
  if (number % 10 == 3) {
    printf("bon\n");
  } else if (number % 10 == 0 || number % 10 == 1 || number % 10 == 6 ||
             number % 10 == 8) {
    printf("pon\n");
  } else {
    printf("hon\n");
  }
  return 0;
}
