n = int(input())%10
if n==2:
    print("hon")
if n==4:
    print("hon") 
if n==5:  
    print("hon")
if n==7:
    print("hon")
if n==9:
    print("hon")
if n==1:
    print("pon")
if n==8:
    print("pon") 
if n==6:
    print("pon")   
if n==3:
    print("bon")
    