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