#include<stdio.h>
 
int main(void){
int N; 
scanf("%d",&N);
if (N > 0)
  if (N % 10 == 2,4,5,7,9)
    printf("hon");
  else if (N % 10 == 0,1,6,8)
    printf("pon");
  else if (N % 10 == 3)
    printf("bon");
return 0;
}
