using System;

class Sample
{
  public static void Main()
  {
    int N = Console.ReadLine();
    int a = N % 10;
    switch(a)
    {
      case 0:
        Console.WriteLine("pon");
        break;
      case 1:
        Console.WriteLine("pon");
        break;
      case 2:
        Console.WriteLine("hon");
        break;
      case 3:
        Console.WriteLine("bon");
        break;
      case 4:
        Console.WriteLine("hon");
        break;
      case 5:
        Console.WriteLine("hon");
        break;
      case 6:
        Console.WriteLine("pon");
        break;
      case 7:
        Console.WriteLine("hon");
        break;
      case 8:
        Console.WriteLine("pon");
        break;
      default :
        Console.WriteLine("hon");
        break;
    }
  }
}