using System;
class Program
{
	static void Main(string[] args)
	{
		int n = int.Parse(Console.ReadLine());
        int a = 0;
        if(n>=100) a = n%100;
        else a = n%10; 
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) Console.WriteLine("hon");
        else if(a == 0 || a == 1 || a == 6 || a == 8) Console.WriteLine("pon");
        else Console.WriteLine("bon");
	}
}