#include <iostream>

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