#include<stdio.h>
int main(void){
  int N;
  scanf("%d",&N);
  int units = N % 10;

  switch (units) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
            puts("hon");
            break;
    case 3:
            puts("bon");
            break;
    default:
            puts("pon");
            break;
  }
  return 0;
}
