using System;

namespace AtCoder{
    public static class AtCoder{
        public static void Main(){
            var n = Console.ReadLine();
            int len = n.Length;
            string s = n.Substring(len - 1, 1);

            switch (s)
            {
                case "2":
                case "4":
                case "5":
                case "7":
                case "9":
                    Console.WriteLine("hon");
                    break;
                case "0":
                case "1":
                case "6":
                case "8":
                    Console.WriteLine("pon");
                    break;
                default:
                    Console.WriteLine("bon");
            }
        }
    }
}