#include <stdio.h>
int main(){
  char N[4];
  gets(N);
  if (N[0]=='2'||N[0]=='4'||N[0]=='5'||N[0]=='7'||N[0]=='9') {
    printf("hon");
  }
  else if (N[0]=='0'||N[0]=='1'||N[0]=='6'||N[0]=='8') {
    printf("pon");
  }
  else {
    printf("bon");
  }
  return 0;
}