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

namespace Threfore_0527_1問目
{
    class Program
    {
        static void Main(string[] args)
        {

            string a = Console.ReadLine();
            int N = Convert.ToInt32(a);
            int b = N % 10;

            if(b==3)
            {
                Console.WriteLine("bon");
            }
            else if(b==0||b==1||b==6||b==8)
            {
                Console.WriteLine("pon");
            }
            else
            {
                Console.WriteLine("hon");
            }

            Console.Read();


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

namespace Threfore_0527_1問目
{
    class Program
    {
        static void Main(string[] args)
        {

            string a = Console.ReadLine();
            int N = Convert.ToInt32(a);
            int b = N % 10;

            if(b==3)
            {
                Console.WriteLine("bon");
            }
            else if(b==0||b==1||b==6||b==8)
            {
                Console.WriteLine("pon");
            }
            else
            {
                Console.WriteLine("hon");
            }

            Console.Read();


        }
    }
}
