#include <stdio.h>
int main (){
  int n, b;
  
  scanf("%d", &n);
  
  b=n%10;
  
  if (b=3)
    printf("bon\n");
  if (b==0 || b==1 || b==6 || b==8)
    printf("pon\n");
  else 
    printf("hon\n"); 
}