# coding: utf-8

import sys



sr = lambda: sys.stdin.readline().rstrip()

ir = lambda: int(sr())

lr = lambda: list(map(int, sr().split()))



N = sr()

N = N[-1]

if N == '3':

    answer = 'bon'

elif N in ['0', '1', '6', '8']:

    answer = 'pon'

else:

    answer = 'hon'



print(answer)

# coding: utf-8

import sys



sr = lambda: sys.stdin.readline().rstrip()

ir = lambda: int(sr())

lr = lambda: list(map(int, sr().split()))



N = sr()[-1]



if N == '3':

    answer = 'bon'

elif N in '0168':

    answer = 'pon'

else:

    answer = 'hon'



print(answer)

# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
N = sr()
N = N[-1]
if N == "3":
    answer = "bon"
elif N in ["0", "1", "6", "8"]:
    answer = "pon"
else:
    answer = "hon"
print(answer)

# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
N = sr()[-1]
if N == "3":
    answer = "bon"
elif N in "0168":
    answer = "pon"
else:
    answer = "hon"
print(answer)

-N = sr() -N = N[-1] +N = sr()[-1] -elif N in ["0", "1", "6", "8"]: +elif N in "0168":