import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
N = S()


if N[-1] =='2' or N[-1] =='4'  or N[-1] =='5' or N[-1] =='7' or N[-1] =='９':
    print('hon')
elif N[-1] =='1' or N[-1] =='0'or N[-1] =='6'or N[-1] =='8':
    print('pon')
elif N[-1] =='3':
    print('bon')

