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()[0].ToString());
            if (N == 0 || N == 1 || N == 6 || N == 8) Console.WriteLine("pon");
            else if (N == 3) Console.WriteLine("bon");
            else Console.WriteLine("hon");
        }
    }
}
