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

namespace ConsoleApp15
{
    class Class345
    {
        static void Main()
        {
            int N = int.Parse(Console.ReadLine());
            if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9)
            {
                Console.WriteLine("hon");
            }
            else if (N == 3)
                Console.WriteLine("bon");
            else
                Console.WriteLine("pon");
        }
    }
}
