#include<stdio.h>

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