n = int(eval(input()))



n = n % 10



if n in (2,4,5,7,9):

    yomi = 'hon'

if n in (0,1,6,8):

    yomi = 'pon'

if n == 3:

    yomi = 'bon'



print(yomi)
n = int(eval(input()))



n = n % 10



if n in (2,4,5,7,9):

    yomi = 'hon'

if n in (0,1,6,8):

    yomi = 'pon'

if n == (3):

    yomi = 'bon'



print(yomi)
n = int(eval(input()))
n = n % 10
if n in (2, 4, 5, 7, 9):
    yomi = "hon"
if n in (0, 1, 6, 8):
    yomi = "pon"
if n == 3:
    yomi = "bon"
print(yomi)

n = int(eval(input()))
n = n % 10
if n in (2, 4, 5, 7, 9):
    yomi = "hon"
if n in (0, 1, 6, 8):
    yomi = "pon"
if n == (3):
    yomi = "bon"
print(yomi)

-if n == 3: +if n == (3):