#include<stdio.h>
int main()
{
  int n,r,bon=3,
  scanf("%d",&r);
  while(n<999)
    n=r%10;
    if(n=2 !! 4 !! 5 !! 7 !! 9!!)
     {
      printf("hon");
     }
    else
      [
      if(n=0 !! 1 1! 6 !! 8)
        printf{"pon");
      else
        if(n=3)
         printf("bon");
       }
 }
    