import sys
#import time
#import copy
#from collections import deque, Counter, defaultdict
#from fractions import gcd
#import bisect
#import itertools
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

def ri():
    return list(map(int, input().split()))
def rs():
    return list(input().strip())

n = str(input())
lst = n[-1]
if lst == ("0" or "1" or "6" or "8"):
    print("pon")
elif lst=="3":
    print("bon")
else:
    print("hon")