using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AtCoder.Question
{
    public class QuestionA
    {
        public static void Main(string[] args)
        {
            var input = args[0];
            switch (input.Last())
            {
                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;
                case '3':
                    Console.WriteLine("bon");
                    break;
                default:
                    break;
            }
        }
    }
}
