def cal():

    num = int(input())
    if num >= 10:
        ben = num % 10
    else:
        ben = num
    if ben == 3:
        print("bon")
    elif ben == 0 or 1 or 6 or 8:
        print("pon")
    elif ben == 2 or 4 or 5 or 7 or 9:
        print("hon")



cal()