#include<stdio.h>
int main(void){
  int N,S;
  scanf("%d",&N);
  S = N % 10;
  if(S == 3)
    printf("bon");
  if(S == 0)
    printf("pon");
  if(S == 1)
    printf("pon");
  if(S == 6)
    printf("pon");
  if(S == 8)
    printf("pon");
  if(S == 2)
    printf("hon");
  if(S == 4)
    printf("hon");
  if(S == 5)
    printf("hon");
  if(S == 7)
    printf("hon");
  if(S == 9)
    printf("hon");
  return 0;
}