#include<stdio.h>

int main()
{
  char nums[4];
  scanf("%s", nums);
  
  char firstPlace;
  int i = 0;
  while(nums[i] != '\0') {
    firstPlace = nums[i];
    i++;
  }
  
  switch (firstPlace) {
    case '0':
    case '1':
    case '6':
    case '8':
      puts("hon\n");
      break;
    case '2':
    case '4':
    case '5':
    case '7':
    case '9':
      puts("pon\n");
      break;
    case '3':
      puts("bon\n");
      break;
  }
  
  return 0;
}