n=input()
#n,m,k=map(int,input().split())
#a=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]

if n[-1]=="3":
    print("bon")
elif n[-1]==("0" or "1" or "6" or "8"):
    print("pon")
else:
    print("hon")
