using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AtCoder.Abc
{
    class A_168_Therefore
    {
        public static void Main(string[] args)
        {
            var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            Console.SetOut(sw);

            // 文字列の入力
            string a = Console.ReadLine();

            if (a.EndsWith("3"))
            {
                a = "bon";
            }
            else if (a.EndsWith("2")|| a.EndsWith("4") || a.EndsWith("5") || a.EndsWith("7") || a.EndsWith("9"))
            {
                a = "pon";
            }
            else if (a.EndsWith("0") || a.EndsWith("1") || a.EndsWith("6") || a.EndsWith("8"))
            {
                a = "hon";
            }

            string result = a;

            Console.WriteLine(result);

            Console.Out.Flush();
        }
    }
}
