using System;
using System.Linq;

public class Test
{
	public static void Main()
	{
		
		string n = Console.ReadLine();
		int l = n.Length;
		int a = int.Parse(n.Substring(l-2,1));
		if(a==3){
			Console.WriteLine("bon");
		}else if(a<=1){
			Console.WriteLine("pon");
		}else if(a==6){
			Console.WriteLine("pon");
		}else if(a==8){
			Console.WriteLine("pon");
		}else{
			Console.WriteLine("hon");
		}
		
	}
}