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