# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = sr()
if N == '3':
    answer = 'bon'
elif N in '0168':
    answer = 'pon'
else:
    answer = 'hon'

print(answer)
