using System;
class Program
{
    static void Main(string[] args)
    {
        string input = Console.ReadLine();
        int lc = input.Length;
        switch(lc)
        {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                Console.WriteLine("hon");
                break;
            case 0:
            case 6:
            case 1:
            case 8:
                Console.WriteLine("pon");
                break;
            case 3:
                Console.WriteLine("bon");
                break;
        }
    }
}