using System;

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