using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string N = Console.ReadLine();
          	if(N[2] = '2' || N[2] = '4' || N[2] = '5' || N[2] = '7' || N[2] = '9')
            {
              Console.Write("hon");
            }
            if(N[2] = '0' || N[2] = '1' || N[2] = '6' || N[2] = '8')
            {
              Console.Write("pon");
            }
             if(N[2] = '3')
            {
              Console.Write("bon");
            }
        }
    }
}
