# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
#N, K = map(int, input().split())
# 文字列の入力
N = int(input())
#開業されたN個要素を受け付ける
#list = [input() for i in range(N)]
#input_list = [list(map(int, input().split())) for i in range(N)]

ans = ""
if N%10 == 0:
    ans = "pon"
elif N%10 = 1:
    ans = "pon"
elif N%10 = 2:
    ans = "hon"
elif N%10 = 3:
    ans = "bon"
elif N%10 = 4:
    ans = "hon"
elif N%10 = 5:
    ans = "hon"
elif N%10 = 6:
    ans = "pon"
elif N%10 = 7:
    ans = "hon"
elif N%10 = 8:
    ans = "pon"
elif N%10 = 9:
    ans = "hon"

print(ans)
