N = int(input())

if int(N) % 10 = 3:
 print('bon')
elif int(N) % 10 = 0:
 print('pon')
elif int(N) % 10 = 1:
 print('pon')
elif int(N) % 10 = 6:
 print('pon')
elif int(N) % 10 = 8:
 print('pon')
else:
 print('hon')
