from sys import stdin

N = map(int, stdin.readline().rstrip().split())
hon = {2,4,5,7,9}
pon = {0,1,6,8}
bon = {3}

N = N % 10

if N in hon:
    print('hon')
elif N in pon:
    print('pon')
else:
    print('bon')