using System;

public class ABC168
{
    static void Main()
    {
        int input = console.ReadLine();
        switch (input)
        {
            if (input == 2,4,5,7,9)
            {
                console.WriteLine("hon");
            }
            else if (input == 0,1,6,8)
            {
                console.WriteLine("pon");
            }
            else if (input == 3)
            {
                console.WriteLine("bon");
            }
        }
    }
}