N=list(input())

n=reversed(N)

if n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":
    print("hon")
if n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":
    print("pon")
if n[0]=="3":
    print("bon")
    break