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