#include<stdio.h>
#include<conio.h>
int main(){
int number;
  scanf("%d",&number);
  if(number%10==2||number%10==4||number%10==5||number%10==7||number%10==9)
    printf("hon");
  else if(number%10==0||number%10==1||number%10==6||number%10==8)
    printf("pon");
  else if (number%10==3)
    printf("bon");
  return 0;
}