#include<stdio.h>

int main()
{
    int N,rem;
    scanf("%d",&N);
    if(N>0 && N<1000)
    {
      rem=N%10;
      if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
      {
        printf("hon\n");
      }
      else if(rem == 0 || rem == 1 || rem == 6 || rem == 8)
      {
        printf("pon\n");
      }
      else
      {
        printf("bon\n");
      }
    }
    else
    {
      printf("Enter N between 1 to 999\n");
    }
    return 0;
}