# -*- coding: utf-8 -*-
"""
Created on Sat May 30 16:42:23 2020

@author: Tofu
"""

N = input()
#print(N)

lst = N[-1]
#print(lst)
x = ''
if lst in ['2','4','5','7','9']:
    x = 'hon'
elif lst in ['0','1','6','8']:
    x = 'pon'
else:
    x = 'bon'
    
#print(x)
    return x