N = str(input())

N_long = len(N)


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