from sys import stdin, setrecursionlimit

setrecursionlimit(10 ** 9)
INF = 1 << 60


def input():
    return stdin.readline().strip()


N = int(input())
if N in (2, 4, 5, 7, 9):
    print('hon')
elif N in (0, 1, 6, 8):
    print('pon')
else:
    print('bon')
