user = int(input())
new = str(user)
ifunction new():
    user = int(input())
    new = str(user)
        if (new == 2 or 4 or 5 or 7 or 9):
            return("hon")
        elif (new ==  0 or 1 or 6 or 8):
            return("pon")
        elif(new == 3):
            return("bon")
print()