def yomikata(N):
    N_firstdigit=N%10
    if N_firstdigit==3:
        print("bon")
    elif N_firstdigit==0 or 1 or 6 or 8:
        print("pon")
    else:
        print("hon")
 
N = int(input())
yomikata(N)