n = sys.stdin.readline().rstrip()
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = [3]
if int(n[-1]) in hon:
    print('hon') 
elif int(n[-1]) in pon:
    print('pon')
elif int(n[-1]) in bon:
    print('bon')