peterverebics/CodeNet_Python_118 huggingface dataset:
N=str(input())
a=list(map(int,N))
A=a[-1]
if A==3:
  print("bon")
elif A==2 or 4 or 5 or 7 or 9:
  print("hon")
else:
  print("pon")
N=str(input())

if int(N[-1])==3:
	print("bon")
elif int(N[-1])==0 or 1 or 6 or 8:
	print("pon")
else:
	print("hon")
n=str(input())
a=n[-1]
print(a)
if a=='2' or n=='4' or a=='5' or a=='7' or a=='9':
    print('hon')
elif a=='3':
    print('bon')
else:
    print('pon')
N = input()
N_list = list(N)
if N_list[-1] == 2 or N_list[-1] == 4 or N_list[-1] == 5 or N_list[-1] == 7 or N_list[-1] == 9:
    print("hon")
elif N_list[-1] == 0 or N_list[-1] == 1 or N_list[-1] == 6 or N_list[-1] == 8:
    print("pon")
else:
    print("bon")
n = int(input())
a = n % 10
if (a == 3):
  print("bon")
elif (a == 2 or 4 or 5 or 7 or 9 ) :
  print("hon")
else:
  print("pon")
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')
N = int(input())
a = 0

if N>=100:
    a = N % 100
    if a == 2|4|5|7|9:
        print("hon")
    elif a == 0|1|6|8:
        print("pon")
    else:
        print ("bon")
n = input()

if n[-1] == "3":
    print("bon")
elif n[-1] == "0" or "1" or "6" or "8":
    print("pon")
else:
    print("hon")
N = int(input("enter the number:"))
ldigit = N%10
bon = [3]
pon = [0,1,6,8]
if ldigit in bon:
  print('bon')
elif ldigit in pon:
  print('pon')
else:
  print('hon')
N = (input())
X = (N[-1:])
if X == 2 and X == 4 and X == 5 and X == 7 and X == 9:
  print("hon")
elif X == 0 and X == 1 and X == 6 and X == 8:
  print("pon")
else :
  print("bon")
n=int(input())
l=n%10
if l==0 or l==1 or l==6 or l==8:
  print("hon")
elif l==3:
  print('bon')
else:
  print("hon")
n=int(input())
 
a=n//10
if a==3:
 print("bon")
elif a==0 or a==6 or a==8 or a==1:
 print("pon")
else:
 print("hon")
import numpy as np

n = int(input())
n = np.mod(n, 10)

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

if int(N[-1]) in hon:
    print('hon')
elif int(N[-1]) in pon:
    print(pon)
else:
    print('bon')
n=str(input())
a=n[-1]
if a=='2' or n=='4' or a=='5' or a=='7' or a=='9':
    print('hon')
elif a=='3':
    print('bon')
elif n==0:
    print('hon')
else:
    print('pon')
num = list(input())
n = int(num[-1])
print(n)
if n == 3:
    print('bon')
elif n in [2,4,5,7,9]:
    print('hon')
else:
    print('pon')
n=int(input())
a=n%10
if a in [1,6,8]:
  print('pon')
elif a in [2,4,5,7,9]:
  print('hon')
else:
  print('bon')
N = int(input())

count = 0
while N > 0:
    digit = N % 10
    N //= 10
    count += 1

if count == 2:
    print('pon')
elif count == 1:
    print('hon')
elif count == 3:
    print('bon')
def main():
    import sys
    input = sys.stdin.buffer.readline
    n = int(input())
    if (m:= n%10) in [2,4,5,7,9]:
        print('hon')
    elif m in [1,6,8]:
        print('pon')
    else:
        print('bon')


if __name__ == '__main__':
    main()
#Ans
N=str(input())
if N[-1]=="2"or N[-1]=="４"or N[-1]=="５"or N[-1]=="７"or N[-1]=="９":
    print("hon")
elif N[-1]=="0" or N[-1]=="1"or N[-1]=="6"or N[-1]=="8":    
    print("pon")
elif N[-1]=="3":
    print("bon")
n = int(input())

if n % 9 == 0 or n % 7 == 0 or n % 5 == 0:
    print("bon")
elif n % 8 == 0 or n % 6 == 0:
    print("pon")
elif n % 2 == 0:
    print("bon")
elif n % 3 == 0:
    print("bon")
else:
    print("pon")
N = int(input('number->'))
a = N % 10
if a == 2 or 4 or 5 or 7 or 9:
  print('hon')
elif a == 0 or 1 or 6 or 8:
  print('pon')
else:
  print('bon')
N = input()[-1]

if int(N) == (2 or 4 or 5 or 7 or 9):
  print("hon")
elif int(N) == (0 or 1 or 6 or 8):
  print("pon")
else:
  print("bon")
N = input()
N_list = list(N)
print(N_list)
if N_list[0] == "2" or N_list[0] == "4" or N_list[0] == "5" or N_list[0] == "7" or N_list[0] == "9":
    print("hon")
elif N_list[0] == "0" or N_list[0] == "1" or N_list[0] == "6" or N_list[0] == "8":
    print("pon")
else:
    print("bon")
num = int(input())

ext = num%10
if ext == 2 or ext == 4 or ext == 5 or ext == 7 or ext == 9:
  print("hon")
if ext == 3:
  print("bon")
else:
  print("pon")
N = int(input())
if N == 2 or 4 or 5 or 7 or 9:
    print("hon")
elif N == 0 or 1 or 6 or 8:
    print("pon")
else:
    print("bon")
s = input()
if int(s[-1]) in [2,4,5,7,9]:
    print('hon')
elif int(s[-1]) in [0, 1, 6, 9]:
    print('pon')
else:
    print('bon')
a = input()
tmp = int(a) % 10
print(tmp)
if tmp == 1 or tmp == 6 or tmp == 8 :
	print("pon")
elif tmp == 2 or tmp == 4 or tmp == 5 or tmp == 7 or tmp == 9:
	print("hon")
elif tmp == 3:
	print("bon")
print('phhbhhphph'[int(input()[-1])] + 'on')
x = input()

if x[-1] in [2,4,5,7,9]:
  print("hon")
elif x[-1] in [0,1,6,8]:
  print("pon")
else:
  print("bon")
# -*-  coding:utf-8 -*-

N = int(input())

if N % 10 == (2 or 4 or 5 or 7 or 9):
    print("hon")
elif N % 10 == 3:
    print("bon")
else:
    print("pon")
n = int(input())

if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
    print('hon')
elif n == 3:
    print('bon')
else:
    print('pon')
n = int(input())
if n%10==2 or 4 or 5 or 7 or 9:
  print("hon")
elif n%10==0 or 1 or 6 or 8:
  print("pon")
else:
  print("bon")
a=input()
b=(a[-1])
if b == "3":
  print(a+"bon")
elif b == "0" or b =="1" or b =="6" or b =="8":
  print(a+"pon")
else :
  print(a+"hon")
n = str(input("n:"))

N = n[-1]

if N == "3":
    print("bon")
elif N == "0" :
    print("pon")
elif N == "1" :
    print("pon")
elif N == "6":
    print("pon")
elif N == "8":
    print("pon")
else:
    print("hon")
N = int(input()) % 10

if N == 3:
    print("bon")
elif N == 0 or 1 or 6 or 8:
    print("pon")
else:
    print("hon")
n = input()
# print(n[len(n) - 1])
if "2" == n[len(n) - 1] or "5" == n[len(n) - 1] or "7" == n[len(n) - 1] or "9" == n[len(n) - 1]:
    print("hon")
elif "0" == n[len(n) - 1]or "1" == n[len(n) - 1] or "6" == n[len(n) - 1] or "8" == n[len(n) - 1]:
    print("pon")
elif "3" == n[len(n) - 1]:
    print("bon")
N = input()
print(N[-1])
n = N[-1]
if n in ["2","4","5","7","9"]:
    print("hon")
elif n in ["0","1","6","8"]:
    print("pon")
else:
    print("bon")
N = int(input())
s = str (N)
print(s[-1])
if s[-1] == "3":
  print ("bon")
elif s[-1] == "0" or "1" or "6" or "8":
  print ("pon")
else:
  print ("hon")
N =int(input())
amari = N % 10
if str(2) or str(4) or str(5) or str(7) or str(9) in str(amari) :
        print ("{}hon".format(str(N)))
elif str(0) or str(1) or str(6) or str(8) in str(amari) :
    print ("{} pon".format(str(N)))
else :
     print ("{}bon".format(str(N)))
N=input()

if int(N[-1])==3:
	print("bon")
elif int(N[-1])==0 or 1 or 6 or 8:
	print("pon")
else:
	print("hon")
n=input()
n=n[-1]
print(n)
if n=='3':
    print('bon')
if n=="0" or n=="1" or n=="6" or n=="8":
    print('pon')
if n=="2" or n=="4" or n=="5" or n=="7" or n=="9":
    print('hon')
N=int(input())
M=N%10
if M==2 or 4 or 5 or 7 or 9:
  print("hon\n")
elif M==3:
  print("bon\n")
else:
  print("pon\n")
a= str(input())
b = a[-1]
if b == 3:
    print("bon")
elif b == 0 or b==1 or b==6 or b ==8:
    print("pon")
else:
    print("hon")
a = input()
b = list(a)

c = sorted(b, reverse = True)

if c[0] == '1':
  print("pon")
elif c[0] == '2':
  print("hon")
elif c[0] == '3':
  print("bon")
elif c[0] == '4':
  print("hon")
elif c[0] == '5':
  print("hon")
elif c[0] == '6':
  print("pon")
elif c[0] == '7':
  print("hon")
elif c[0] == '8':
  print("pon")
elif c[0] == '9':
  print("hon")
elif c[0] == '0':
  print("pon")
n = input()

if n[-1:] == str(2) or  n[-1:] ==  str(4) or  n[-1:] == str(7) or  n[-1:] == str(9):
  print('hon')
if (n[-1:]) == str(0) or  n[-1:] == str(1) or  n[-1:] == str(6) or  n[-1:] == str(8):
  print('bon')
if (n[-1:]) == str(3):
  print('pon')
N=input()
a=[]
a=N

b=a[int(len(N))-1]
if(b==0 or b==1 or b==6 or b==8):
    print('pon')
elif(b==3):
    print('bon')
else:
    print('hon')
N = int(input())
if N%10 == [2,4,5,7,9]:
  print('hon')
elif N%10 == [0,1,6,8]:
  print('pon')
else:
  print('bon')
N = int(input())
N = N % 10
if N in (2, 4, 5, 7, 9):
    print ("hon")
elif N in (0, 1, 6, 7):
    print ("pon")
else:
    print ("bon")
n = input()

if n[-1] == '3':
    print('bon')
elif n[-1] == '0' or '1' or '6' or '8' :
    print('pon')
else :
    print('hon')
N= int(input())
n = N % 10
print(n)
if n == 2 or n==4 or n ==5 or n == 7 or n == 9:
  print('hon')
elif n == 0 or n ==1 or n == 6 or n == 8:
  print('pon')
elif n == 3:
  print('bon')
input_line = int(input())
#print(input_line)

first=input_line%10
print(first)

if first == 2 or first == 4 or first == 5 or first == 7 or first == 9:
    print("hon")
elif first == 0 or first == 1 or first == 6 or first == 8:
    print("pon")
elif first == 3:
    print("bon")
def yomikata(N):
    N_firstdigit=N%10
    if N_firstdigit==3:
        print("bon")
    elif N_firstdigit==0 or 1 or 6 or 8:
        print("pon")
    else:
        print("hon")

N = int(input())
yomikata(N)
N = str(input())
if N[-1]==3:
  print('bon')
elif (N[-1]==0)or(N[-1]==1)or(N[-1]==6)or(N[-1]==8):
  print('pon')
else:
  print('hon')
n = input()
if(n[-1] == "3"):
	print("bon")
elif(n[-1] == "0","1","6","8"):
	print("pon")
else:
	print("hon")
l = str(int(input()))
n = []

for i in range(len(l)):
    n.append((l)[i])
print(n[-1])

if n[-1] == '2' or n[-1] == '4' or  n[-1] == '5' or n[-1] == '7' or  n[-1] == '9':
    print("hon")
elif  n[-1] == '3':
    print("bon")
else:
    print("pon")
N=int(input())
if N%10==3:
    print("bon")
elif N%10==0 or 1 or 6 or 8:
    print("pon")
else:
    print("hon")
def main():
    s, = map(int, open(0).read().split())

    first_place_of_s = s % 10

    if first_place_of_s in [2, 4, 5, 7, 9]:
        ans = 'hon'
    elif first_place_of_s in [0, 1, 6, 8]:
        ans = 'pon'
    else:
        ans = 'bon'

    ans = ''
    print(ans)
    return()


if __name__ == '__main__':
    main()
N = list(input())
if N[:-1] == "3":
    print("bon")
elif N[:-1] in ["0","1","6","8"]:
    print("pon")
else :
    print("hon")
N = input()
if N[-1] == "3":
    print("bon")
elif N[-1] == "0" or N[-1] == "1" or N[-1] == 6 or N[-1] ==8:
    print("pon")
else:
    print("hon")
n = int(input()) % 10
if n == 3:
	print("bon")
elif n == 0 or 1 or 6 or 8:
	print("pon")
else:
	print("hon")
a=input()
if(int(a) > 0):
	s=str(a)
	if(s[-1] in ('2','4','5','7','9')):
		print('hon')
	elif(s[-1] in ('0','1','6','8')):
		print('pon')
	elif(s[-1] == '3'):
		print('bonn')
n=int(input())%10
if n in [2,4,5,7,8]:
    print("hon")
elif n in[0,1,6,8]:
    print("pon")
else:
    print("bon")
N = input ()
P = '1689'
H = '2457'
if N[-1] in P:
  print ('pon')
elif N[-1] in H:
  print ('hon')
else:
  print ('bon')
s = str(input())[-1]
if s == '3':
  print('hon')
elif s in ['0','1','6','8']:
  print('pon')
else:
  print('pon')
def solve():
    if s[-1] == "3":
        print("bon")
    elif s[-1] in "0168":
        print("pon")
    else:
        print("hon")
    return

#n, m = [int(ii) for ii in raw_input().split()]
s = raw_input()
#整数の入力
N= input()
N_list = list(N)

print(N_list[len(N_list)-1])

if(N_list[len(N_list)-1] == "2" or "4" or "5" or "7"or "9"):
  print("hon")
elif(N_list[len(N_list)-1] == "0" or "1" or "6" or "8"):
  print("pon")
else:
  print("bon")
n = str(input())

if len(n) == 1:
  i = int(n)
else:
  i = int(n[-1:])

print(n[-1:])
  
if i in (2,4,5,7,9):
  print("hon")
elif i in (0,1,6,8):
  print("pon")
else:
  print("bon")
a=int(input())
if a>10:
    while a>100:
        a-=100
    while a>10:
        a-=10
if a==3:
    print("bon")
elif a==1 or a==6 or a==8:
    print("pon")
else:
    print("hon")
A=input()
x=A[-1]
if x==3:
	print('bon')
elif x==0 or 1 or 6 or 8:
	print('pon')
else:
	print('hon')
N=str(input())
if N[-1]==3:
    print("bon")
elif N[-1]==0 or 1 or 6 or 8:
    print("pon")
else:
    print("hon")
a=list(input())
b =len(a)


if  a[b-1]==2 or a[b-1]==4 or a[b-1]==5 or a[b-1]==7 or a[b-1]==9 :  #abが２で割り切れたら、Evenと入力
    print('hon')  

elif a[b-1]==0 or a[b-1]==1 or a[b-1]==6 or a[b-1]==8  :
    print('pon')
    
else :           #それ以外なら,Oddと入力
    print('bon')
n=str(input())
x=len(n)
if n[x-1]=='2' or '4' or '5' or '7' or '9':
  print('hon')
elif n[x-1]=='0' or '1' or '6' or '8':
  print('pon')
else:
  print('bon')
n = input()
a = [int(c) for c in n]
if(a[-1] == 3):
    print('bon')
elif(a[-1] == 0 or 1 or 6 or 8):
    print('pon')
else:
    print('hon')
s = input() 
if s[-1]=="0" or s[-1]=="1" or s[-1]=="6" or s[-1]=="8":
    print("pon")
    
elif s[-1]==3:
    print("bon")
    
else:
    print("hon")
a = input()[0]
if a in "24579":
    print("hon")
elif a in "0168":
    print("pon")
else:
    print("bon")
import sys
import math
m = input()
n= int(m)
a=math.floor(n/100)
n=n-a*100
b=math.floor(n/10)
n=n-b*10
if n==2 or 4 or 5 or 7 or 9:
    print("hon")
elif n==0 or 1 or 6 or 8:
    print("pon")
elif n==3:
    print("bon")
##A
N = str(input())
if N[-1] == '3':
    print('bon')
elif N[-1] == '0' or '1' or '6' or '8':
    print('pon')
else:
    print('hon')
n = list(map(str, input().split()))

n = int(n[-1])
if n==2 or n==4 or n==5 or n==7 or n==9 :
    print('hon')
elif n==0 or n==1 or n==6 or n==8:
    print('pon')
else:
    print('bon')
N = input()
end = int(N[-1])
for end in range(10):
    print(end)
    if end == 3:
        print('bon')
    elif end in [0, 1, 6, 8]:
        print('pon')
    else:
        print('hon')
N = input("How many books?\n")
N = int(N)
N1= N % 10
num = {2:"hon",4:"hon",5:"hon",7:"hon",9:"hon",\
        0:"pon",1:"pon",6:"pon",8:"pon",\
        3:"bon"}
if N in num:
    val = num[N]
    print(val)
else:
    print("エラー")
N = int(input())

if N in [2,3,5,7,9]:
    print("hon")
elif N in [0, 1, 6, 8]:
    print("pon")
elif N == 3:
    print("bon")
N=input()[-1:]

if N=="3":
  print("bon")
elif N in {0,1,6,8}:
  print("pon")
else:
  print("hon")
n = input()

if n[-1] in [2,4,5,7,9]:
  print('hon')
  
elif n[-1] in [0, 1, 6, 8]:
  print('pon')
  
else:
  print('bon')
N = input()
if N[-1] in ["2","4","5","7","9"]:
  print("hon")
elif N[-1] in  ["1","6","8"]:
  print("pon")
else:
  print("bon")
n = input()
if n[-1] == 2 or n[-1] == 4 or n[-1] == 5 or n[-1] == 7 or n[-1] ==9:
    print("hon")
elif n[-1] == 3:
    print("bon")
else:
    print("pon")
n=int(input())
x = n%10
if x in [2,4,7,9]:
    print("hon")
elif x in [0,1,6,8]:
    print("pon")
else:
    print("bon")
def main():
    n = list(input())[-1]
    if n in [2, 4, 5, 7, 9]:
        ans = 'hon'
    elif n in [0, 1, 6, 8]:
        ans = 'pon'
    else:
        ans = 'bon'
    print(ans)


if __name__ == "__main__":
    main()
a=input()
if a[-1]==3: print('bon')
elif a[-1]==0 or a[-1]==1 or a[-1]==6 or a[-1]==8: print('pon')
else: print('hon')
N = str(input())
num = N[-1]
 
if num == 3:
  print('bon')
elif num == 0:
  print('pon')
elif num == 1:
  print('pon')
elif num == 6:
  print('pon')
elif num == 8:
  print('pon')
elif num ==2:
  print('hon')
elif num == 4:
  print('hon')
elif num==5:
  print('hon')
elif num==7:
  print('hon')
elif num==9:
  print('hon')
import sys
#入力する数N
N = input()

I = N[-1]   #ここでint→strに代わってる
print(type(I))
#print(I)

if I in ["2", "4", "5", "7", "9"]:   #""はstrになってるから必要
    print("hon")
    sys.exit()
elif I in ["0", "1", "6", "8"]:
    print("pon")
    sys.exit()
else :
    print("bon")
    sys.exit()
N=input()
if N[-1]==3:
  print('bon')
elif N[-1]==0:
  print('pon')
elif N[-1]==1:
  print('pon')
elif N[-1]==6:
  print('pon')
elif N[-1]==8:
  print('pon')
else:
  print('hon')
"""AtCoder."""

n = int(input())

s = None

if n in (2, 4, 5, 7, 9):
    s = 'hon'
elif n in (0, 1, 6, 8):
    s = 'pon'
elif n in (3,):
    s = 'bon'

print(s)
n = str(input())

a = [2,4,5,7,9]
b = [0,1,8]

print(n[-1:])
if n[-1:] in a:
  print("hon")
elif n[-1:] in b:
  print("pon")
else:
  print("bon")
N = str(input())
num = N[-1]
 
if num == 3:
  print('bon')
elif num == 0:
  print('pon')
elif num == 1:
  print('pon')
elif num == 6:
  print('pon')
elif num == 8:
  print('pon')
elif num ==2 or num == 4 or num==5 or num==7 or num==9:
  print('hon')
N = int(input())

ans = N % 10

if ans == 2 or ans == 4 or ans == 5 or ans == 6 or ans == 7:
    print("hon")
elif ans == 0 or ans == 1 or ans == 6 or ans == 8:
    print("pon")
else:
    print("bon")
n=input()
a=[2,4,5,7,9]
b=[0,1,6,8]
c=[3]
if n[-1] in a:
  print("hon")
elif n[-1] in b:
  print("pon")
else:
  print("bon")
def cal():

    num = int(input())
    if num >= 10:
        ben = num % 10
    else:
        ben = num
    if ben == 3:
        print("bon")
    elif ben == 0 or 1 or 6 or 8:
        print("pon")
    elif ben == 2 or 4 or 5 or 7 or 9:
        print("hon")



cal()
N=input()
num=len(N)
a={2,4,5,7,9}
b={0,1,6,8}
c={3}

if N[num-1] in a:
    print("hon")
elif N[num-1] in b:
    print("pon")
else:
    print("bon")
#Ans
N=str(input())
if N[-1]=="3":
    print("bon")
elif N[-1]==("0"or"1"or"6"or"8"):    
    print("pon")
elif N[-1]==("2"or"４"or"５"or"７"or"９"):
    print("hon")
N = str(input())

N = int(N[-1])

if N in [2,3,5,7,9]:
    print("hon")
elif N in [0, 1, 6, 8]:
    print("pon")
elif N == 3:
    print("bon")
n = int(input())
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
if (n % 10) in hon:
    print('hon')
elif (n % 10) in pon:
    print('pon')
else:
    print('pon')
n = int(input())

while n > 10:
    n -= 10

if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
    print("hon")
elif n == 0 or n == 1 or n == 6 or n == 8:
    print("pon")
else:
    print("bon")
n = int(input())
pon = [0,1,6,8]
hon = [2,4,5,7,9]
bon = [3]
if n in pon:
  print("pon")
elif n in hon:
  print("hon")
else:
  print("bon")
n = int(input())

n %= 10
if n == 3:
    print('bon')
if n == 0 or 1 or 6 or 8:
    print('pon')
else:
    print('hon')
num = int(input()) % 10

if num==3:
    print('bon')
elif num==1 or num==6 or num==8:
    print('pon')
else:
    print('hokn')
N = input()
h = [2,4,5,7,9]
p = [0,1,6,8]
print(N[-1])
if int(N[-1]) in h:
	print("hon")
elif int(N[-1]) in p:
	print("pon")
else:
	print("bon")
N = list(input())
if N[len(N)-1] == 3:
    print('bon')
elif N[len(N)-1] == 0 or N[len(N)-1] == 1 or N[len(N)-1] == 6 or N[len(N)-1] == 8:
    print('pon')
else:
    print('hon')
N = int(input())%10
print(N)
hon = [2,4,5,7,9]
pon = [0,1,6,8]
if N in hon:
    print("hon")
elif N in pon:
    print("pon")
else:
    print("bon")
N = list(input())
print(len(N))
if N[len(N)-1] == 3:
    print('bon')
elif (N[len(N)-1] == 0) or (N[len(N)-1] == 1) or (N[len(N)-1] == 6) or (N[len(N)-1] == 8):
    print('pon')
else:
    print('hon')
n = int(input())%10
if n == "3":
  print("bon")
elif n == "0" or n == "1" or n == "6" or n == "8":
  print("pon")
else:
  print("hon")
def yomikata(N):
    N_firstdigit=N%10
    if N_firstdigit==3:
        print("bon")
    elif N_firstdigit==0 or 1 or 6 or 8:
        print("pon")
    else:
        print("hon")
 
N = int(input())
yomikata(N)
N = list(map(int,input().split()))


x = list(N)
if x[-1]==3:
    print('bon')
elif x[-1]==0 or x[-1]==1 or x[-1]==6 or x[-1]==8:
    print('pon')
else:
    print('hon')
N = int(input())

if N % 10 == 3:
    print("bon")
elif N % 10 == 0 or 1 or 6 or 8:
    print("pon")
else:
    print("hon")
n = input()

if n[0] in '24579':
    ans = 'hon'
elif n[0] in '0168':
    ans = 'pon'
else:
    ans = 'bon'
print(ans)
S = input()

c = S[-1]

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

if N[-1] == '3':
  print('bon')
elif N[-1] == '0' or '1' or '6' or '8':
  print('pon')
else: print('hon')
N = list(map(int,input().split()))


if N[-1]==3:
    print('bon')
elif N[-1]==0 or N[-1]==1 or N[-1]==6 or N[-1]==8:
    print('pon')
else:
    print('hon')
n = input()
one = int(n[-1])
if one == 3:
    print("bon")
elif one == 0 or one == 1 or one == 6 or one == 8:
    print("pon")
else:
    print("bon")
n = input()

hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]

if n in bon:
    print('bon')
elif n in hon:
    print('hon')
elif n in pon:
    print('pon')
def main():
  N = list(map(int,input().split()))[0]
  if N == 3:
    ans = "bon"
  elif N == 0 or N == 1 or N == 6 or N == 8:
    ans = "pon"
  else:
    ans = "hon"

  return ans
if __name__ == '__main__':
  print(main())
n=input()
n=n[-1]
print(n)
if n=='3':
    print('bon')
else:
    if n=="0" or n=="1" or n=="6" or n=="8":
        print('pon')
    else:
        print('hon')
N = (input())
A = N[-1]

if A != str(2) or str(4) or str(5) or str(7) or str(9):
   	print("hon")
elif A != str(0) or str(1) or str(6) or str(8):  
	print("pon")
else:
	print("bon")
N=input()
N=list(map(int,N))

if N[-1]==2 or 4 or 5 or 7 or 9:
    print("hon")
elif N[-1]==0 or 1 or 6 or 8:
    print("pon")
else:
    print("bon")
n = input()

n_i = int(n[-1])

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

print(ans)
N=int(input())
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]
if N in hon:
  print("hon")
elif N in pon:
  print("pon")
else:
  print("bon")
N = int(input())
NS = str(N)
if NS[len(NS) - 1] == 3:
  ans = "bon"
elif NS[len(NS) - 1] == 0 or 1 or 6 or 8:
  ans = "pon"
else:
  ans = "hon"
print(ans)
N = input()
N = int(N[len(N)-1])
if N == 3:
    print('bon')
if N == 0 or N == 1 or N == 6 or N == 8:
    print('pon')
else:
    print('hon')
N = input()
N = list(N)
N[-1] = int(N[-1])
if N[-1] == 2 or 4 or 5 or 7 or 9:
  print('hon')
elif N[-1] == 0 or 1 or 6 or 8:
  print('pon')
else:
  print('bon')
N = input()
N = [N]
if N[-1] == 2 or 4 or 5 or 7 or 9:
    print("hon")
elif N[-1] == 0 or 1 or 6 or 8:
    print("pon")
elif N[-1] == 3:
    print("bon")
x = input()
y = x[-1]
if y==3:
  print("bon")
elif y == 0:
  print("pon")
elif y == 1:
  print("pon")
elif y == 6:
  print("pon")
elif y == 8:
  print("pon")
else:
  print("hon")
a=input()
s=str(a)
if(s[-1] in ('2','4','5','7','9')):
	print('hon')
elif(s[-1] in ('0','1','6','8')):
	print('pon')
elif(s[-1] == '3'):
	print('bonn')
a=input()


x=int(a[0])

if x%10== 2 or x%10==4 or x%10==5 or x%10==7 or x%10==9:
  print("hon")
elif x%10== 0 or x%10==1 or x%10==6 or x%10==8:
  print("pon")
else :
  print("hon")
N = input()

one = N[len(N)-1]
print("one:"+one)

if one == "3":
    print("bon")
elif one == "0" or one == "1" or one == "6" or one == "8":
    print("pon")
else:
    print("hon")
n = int(input())
n %= 10
if n==3:
    print("bon")
elif n in (0,1,6,7):
    print("pon")
else:
    print("hon")
n = input()
print((n in '24579')*'hon' + (n in '0168')*'pon' + (n in '3')*'bon')
import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    N = read_int()
    if N % 10 == 2 or 4 or 5 or 7 or 9:
      res = 'hon'
    elif N % 10 == 0 or 1 or 6 or 8:
      res = 'pon'
    elif N % 10 == 3:
      res = 'bon'
    print(res)


main()
n = int(input())
if n in   [2 , 4 , 5 , 7 , 9]:
    print("hon")
elif n in  [0 , 1 , 6 , 8]:
    print("pon")
elif n == 3:
    print("bon")
n = int(input())

hon = [2,4,5,7,9]
bon = [3]

if n in hon:
  print('hon')
elif n in bon:
  print('bon')
else:
  print('pon')
n = str(input("n:"))

N = n[-1]

if N == 3:
    print("bon")
elif N == 0 or 1 or 6 or 8:
    print("pon")
else:
    print("hon")
a=list(map(int,input().split()))
print("bon" if a[-1] == 3 else "pon" if a[-1] == 0 or a[-1] == 1 or  a[-1] == 6 or  a[-1] == 8 else "hon")
n = input()
# a = map(int,input().split())
a = int(n[-1])
print("a",a)
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9:
    print("hon")
elif a == 3:
    print("bon")
else:
    print("pon")
n = input()
if n[:-1] == "3":
    print("bon")
elif n[:-1] == "0" or n[:-1] == "1"or n[:-1] == "6" or n[:-1] == "8":
    print("pon")
else:
    print("hon")
n = input()
slist = list(n)
print(slist)

number = int(slist[len(slist) - 1])
print(number)

if number == 3:
  print('bon')
elif number == 0 or number == 1 or number == 6 or number == 8:
  print('pon')
else:
  print('hon')
N=int(input())
N=str(N)
N = (N[-1])
if (N==2 or N==4 or N==5 or N==7 or N==9):
  print("hon")
elif (N==0 or N==1 or N==6 or N==8):
  print("pon") 
elif (N==3):
  print("bon")