N = int(input())
A = N % 10
if N > 0 and N < 999:
    if A == 3:
        print('bon')
    elif N == 1 or A == 1:
        print('pon')
    elif A == 4 or A == 2 or N %2 !=0 or A != 1:
        print('hon')
    elif N % 2 == 0 :
        print('pon')