#include <stdio.h>
int main(void){
  int a[100];
  scanf("%d",&a);
  switch(a[-1]){
    case 3:
      printf("bon");
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      printf("pon");
      break;
    default:
      printf("hon");
      break
  }
}