using System;

namespace ABC168_a
{
    class Program
    {
        static void Main(string[] args)
        {
            //標準入力文字列を数値に変換
            long N = long.Parse(Console.ReadLine());
            //1の位を抽出
            long N_1st = N % 10;

            if(N_1st == 3){
                Console.WriteLine("hon");
            }else if(N_1st == 0 || N_1st == 1 || N_1st == 6 || N_1st == 8){
                Console.WriteLine("pon");
            }else if(N_1st == 2 || N_1st == 4 || N_1st == 5 || N_1st == 7 || N_1st == 9){
                Console.WriteLine("hon");
            }
        }
    }
}
