#include <stdio.h>

void kazu(int n){
  int i=n%10;
  if(i==2,4,5,7,9){
    printf("hon\n");
  }
  else if(i==0,1,6,8){
    printf("pon\n");
  }
  else if(i==3){
    printf("bon\n");
  }
}

int main(void){
  int N;
  scanf("%d",&N);
  kazu(N);
  return 0 ;
}
