using System;

namespace ABC168_a
{
    class Program
    {
        static void Main(string[] args)
        {
            long N = long.Parse(Console.ReadLine()); //標準入力文字列を数値に変換
            if(N%10 == 3){
                Console.WriteLine("hon");
            }else if(N%10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8){
                Console.WriteLine("pon");
            }else {
                Console.WriteLine("hon");
            }
        }
    }
}
