using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Runtime.Remoting.Messaging;

class TEST
{
    public static void Main()
    {
        string value = Console.ReadLine();

        switch (value.Substring(value.Length-1, 1))
        {
            case "2":
            case "4":
            case "5":
            case "7":
            case "9":
                Console.WriteLine("hon");
                break;
            case "0":
            case "1":
            case "6":
            case "8":
                Console.WriteLine("pon");
                break;
                default:
                Console.WriteLine("bon");
                break;

        }
    }

}