#include <stdio.h>

int main()
{
 int n;
 
  scanf("%d",&n);
  
  int rest=n%10;
  
  if(rest==0||rest==1||rest==6||rest==8)
  {
    printf("pon\n");
  }
  else if(rest==3)
  {
    printf("bon\n");
  }
  else
  {
    printf("hon\n");
  }
  return 0;
}