using System;

namespace A
{
    class Program
    {
        static void Main(string[] args)
        {
            var n =  Int64.Parse(Console.ReadLine().Trim());
            switch (n)
            {
                case 3:
                    Console.WriteLine("bon");
                    break;
                case 0:
                case 1:
                case 6:
                case 8:
                    Console.WriteLine("pon");
                    break;
                default:
                    Console.WriteLine("hon");
                    break;
            }
        }
    }
}
