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 == ("2"):
    print("hon")
if lst == ("4"):
    print("hon")
if lst == ("5"):
    print("hon")
if lst == ("7"):
    print("hon")
if lst == ("9"):
    print("hon")

if lst =="3":
    print("bon")
if lst =="0":
    print("pon")
    
if lst =="1":
    print("pon")
    
if lst =="6":
    print("pon")
    
if lst =="8":
    print("pon")