using System;

namespace WelcomeToAtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            long n = long.Parse(Console.ReadLine());
            
            String ret = "";
            switch (n)
            {
                case 2:
                case 4:
                case 5:
                case 7:
                case 9:
                    ret = "hon";
                    break;
                case 0:
                case 1:
                case 6:
                case 8:
                    ret = "pon";
                    break;
                case 3:
                    ret = "bon";
                    break;

            }
            Console.WriteLine(ret);
        
        }

    }
}
