N=str(input())
if N[-1]=="2"or N[-1]=="４"or N[-1]=="５"or N[-1]=="７"or N[-1]=="９":
    print("hon")
elif N[-1]=="０" or N[-1]=="１"or N[-1]=="６"or N[-1]=="８":    
    print("pon")
elif N[-1]=="３":
    print("bon")