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

namespace abc168_v{
    class Program{
        static void Main(string[] args){
            // var input = Console.ReadLine();

            for (int i = 0; i < 100; i++){
                var n = Convert.ToInt32(i.ToString().Last().ToString());
                switch(n){
                    case 3:
                        System.Console.WriteLine(i + ":bon");
                        break;
                    case 0:
                    case 1:
                    case 6:
                    case 8:
                        System.Console.WriteLine(i + ":pon");
                        break;
                    default:
                        System.Console.WriteLine(i + ":hon");
                        break;
                }
            }
        }
    }
}
