n = print()
 
s = int(n) % 10
 
if s == 3:
	print('bon')
if s == 1:
	print('pon')
if s == 2:
    print('hon')
if s == 4:
    print('hon')
if s == 5:
    print('hon')
if s == 6:
    print('pon')
if s == 7:
    print('hon')
if s == 8:
    print('pon')
if s == 9:
    print('hon')
if s == 0:
    print('pon')