
def q1():
    n = int(input()[-1])
    print(n)
    if n in [2, 4, 5, 7, 9]:
        print("hon")
        return
    if n in [0, 1, 6, 8]:
        print("pon")
        return
    if n in [3]:
        print("bon")
        return


q1()
