# coding: utf-8
# Your code here!

n = input()

# print(n)
# print(n[-1])

# 2, 4, 5, 7, 9
if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '8':
    print('hon')

# 0, 1, 6, 8
if n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
    print('pon')

# 3
if n[-1] == '3':
    print('bon')