using System;
using System.Linq;

namespace abc168_v{
    class Program{
        static void Main(string[] args){
            var input = Console.ReadLine();
            var n = Convert.ToInt32(input.Last());
            switch(n){
                case 3:
                    System.Console.WriteLine("bon");
                    break;
                case 0:
                case 1:
                case 6:
                case 8:
                    System.Console.WriteLine("pon");
                    break;
                default:
                    System.Console.WriteLine("hon");
                    break;
            }
        }
    }
}

