#include <iostream>
 
int main()
{
  int n, tmp;
  std::cin >> n;
  
  tmp = n / 10;
  n = n - tmp * 10;
  
  if (n == 2
  
  switch(n)
  {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      std::cout << "hon";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      std::cout << "pon";
      break;
    case 3:
      std::cout << "bon";
      break;
  }
  
  return 0;
}