using System;
class p
{
  static void Main()
  {
    int N = int.Parse(Console.ReadLine());
    if (N == 3) {
      Console.WriteLine("bon");
      return;
    } else if (N == 0 || N == 1 || N == 6 || N == 8) {
      Console.WriteLine("pon");
      return;
    } else {
      Console.WriteLine("hon");
      return;
    }
  }
}