class Program
    {
        static void Main(string[] args)
        {
            string N = Console.ReadLine();
            string laststr = N.Substring(N.Length - 1);
            if(laststr == "2" || laststr == "4" || laststr == "5" || laststr == "7" || laststr == "9")
            {
                Console.WriteLine("hon");
            }
            if(laststr == "0" || laststr == "1" || laststr == "6" || laststr == "8")
            {
                Console.WriteLine("pon");
            }
            if(laststr == "3")
            {
                Console.WriteLine("bon");
            }
        }
    }