#include <stdio.h>

int main(void)
{
  int N;
  int n = N%10;
  
  printf("数値を入力：");
  scanf("%d", &N);
  
   switch (n){
     case 3: puts("bon"); break;
     case 0:
     case 1:
     case 6:
     case 8: puts("pon"); break;
     default: puts("hon"); break;
   }
  return 0;
}
