peterverebics/CodeNet_Python_118 huggingface dataset:
N=input()
s=len(N)

print(N[s-1])


if N[s-1] is "0" or N[s-1] is "1" or N[s-1] is "6" or N[s-1] is "8":
    print("pon")

elif N[s-1] is "3":
    print("bon")

elif N[s-1] is "2" or N[s-1] is "4" or N[s-1] is "5" or N[s-1] is "7" or N[s-1] is "9":
    print("hon")
N = int(input())
A = [2, 4 , 5, 7, 9]
B = [0, 1, 6, 8]
C = [3]

if N%10 in A:
  print("hon")
if N%10 in B:
  print("pon")
if N%10 in A:
  print("bon")
a = input()
n = a[-1]

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

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

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

if N[-1] in [2,4,5,7,9]:
  print('hon')
elif N[-1] == 3:
  print('bon')
else:
  print('pon')
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")
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=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 a=='0'or a=='1'or a=='6'or a=='8':
    print('pon')
N = int(input())
length = len(str(N))
result = 0
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = 3


for _ in range(length-1):
    result = N % 10
if result in hon:
    print("hon")
elif result in pon:
    print("pon")
else:
    print("bon")
n = int(input())
N = str(n)

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

a = int(n[-1])

if n==2  or n==2  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')
a = int(input())
if [2,4,5,7,9].count(a%10) == 1:
    print('hon')
elif [0,1,6,8].count(a%10) == 1:
    print('hon')
elif [3].count(a%10) == 1:
    print('bon')
N=int(input())
if N%10==3:
    print("hon")
elif N%10==0:
    print("pon")
elif N%10==1:
    print("pon")
elif N%10==6:
    print("pon")
elif N%10==8:
    print("pon")
else:
    print("hon")
import sys
readline = sys.stdin.buffer.readline
s =readline().rstrip().decode()
if s[-1]=='3':
  print('bon')
elif s[-1] == '6' or int(s[-1]) < 2 :
  print('pon')
else:
  print('hon')
n = int(input())

if n >= 100:
  na = n % 100
elif n >= 10:
  na = n % 10
else:
  na = n
pon = [0,1,6,8]

if na == 3:
  print("bon")
elif na in pon:
  print("pon")
else:
  print("hon")
N = int(input())
m = N%10
if m==0 or m==1 or m==6 or m==8:
  print('pon')
if m==3:
  print('bon')
else:
  print('hon')
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())
if N == 3:
  print('bon')
elif N == 0 or N == 1 or N == 6 or N == 8:
  print('pon')
else:
  print('hon')
n = int(input())

d = n % 10

if d in [2,4,5,7,9]:
  print('hon')
if d in [0,1,6,8]:
  print('pon')
if d in [3]:
  print('hon')
N = int(input())

if N%10==2:
  print('hon')
if N%10==4:
  print('hon')
if N%10==5:
  print('hon')
if N%10==6:
  print('pon')
if N%10==7:
  print('hon')
if N%10==8:
  print('hon')
if N%10==9:
  print('hon')
if N%10==0:
  print('pon')
if N%10==1:
  print('pon')
if N%10==3:
  print('bon')
n=input()
m=n[-1]
if int(n[-1])==2 or m==4 or m==5 or m==7 or m==9:
    print("hon")
elif int(n[-1])==0 or m==1 or m==6 or m==8:
    print("pon")
else:
    print("bon")
from sys import stdin
import math
a=int(stdin.readline())
b=stdin.readline()
stdin.readline

if len(b)<=a:
    print(b)
else:
    for k in range(0,a):
        print(b[k],end='')
    print('...',end='')
n=list(input())
n==reversed(n)

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

F = N[-1]

if F == "3":
  print("bon")
elif F == "0" or "1" or "6" or "8":
  print("pon")
else:
  print("hon")
N = map(int, input().split())

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

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

if n_last in [3]:
	print('bon')
elif n_last in [0,1,6,8] :
	print('pon')
else:
	print('hon')
N = input()
s = int(N) % 10

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

if n > 100:
    n =  n -  n // 100 * 100
if n > 10:
    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")
else:
    print("bon")
N = str(input())
if N[-1] == '3':
    print('bon')
elif N[-1] in ['0','1','6','9']:
    print('pon')
else:
    print('hon')
N = input()

if N[-1] == 3:
    print('bon')

elif N[-1] in ['0','1','6','8']:
    print('pon')

else:
    print('hon')
N=(input())
if int(N[-1])==3:
    print('bon')
elif int(N[-1])==2 or int(N[-1])==4 or (N[-1])==5 or (N[-1])==7 or (N[-1])==9:
    print('hon')
else:
    print('pon')
def main():
  a = int(input())
  x = a % 10
  
  if x == 2 or 4 or 5 or 7 or 9:
    print('hon')
    return
  elif x == 0 or 1 or 6 or 8:
    print('pon')
    return
  else:
    print('bon')
  
main()
n = input()
if n[-1] == (n[-1] == "2")or(n[-1] == "4")or(n[-1] == "5")or(n[-1] == "7")or(n[-1] == "9") :
    print("hon")
elif (n[-1] == "0")or(n[-1] == "1")or(n[-1] == "6")or(n[-1] == "8"):
    print("pon")
else:
    print("bon")
n=int(input())
hon =[2,4,5,7]
pon=[0,1,6,8]
bon=[3]
n=n%10
if n in hon:
  print("hon")
elif n in pon:
  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")
s=list(input())
if s[-1]=="3":
  print("bon")
elif s[-1]=="0" or "1" or "6" or "8":
  print("pon")
else:
  print("hon")
s=list(input())
if s[-1]==3:
  print('bon')
elif s[-1]==0 or s[-1]==1 or s[-1]==6 or s[-1]==8:
  print('pon')
else:
  print('hon')
import sys
input = sys.stdin.readline

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

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

if a[-1]=="2" or a[-1]=="4 "or a[-1]=="5" or a[-1]=="7" or a[-1]=="9":
    print("hon")

elif a[-1]=="0" or a[-1]=="1" or a[-1]=="6" or a[-1]=="8":
    print("pon")

else :
    print("bon")
n = list(input())

if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '9':
    print('hon')
elif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
    print('pon')
else:
    print('bon')
n=int(input())
num=n%1000
if num==3:
  print("bon")
elif num==0 or num==1 or num==6 or num==8:
  print("pon")
else:
  print("hon")
def cal():

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



cal()
n = input()
word = n[-1]

if word == "3":
  print(n + "bon")
elif word == "0" or word == "1" or word == "6" or word == "8":
  print(n + "pon")
else:
  print(n + "hon")
n = input()
if n[len(n) - 1] == "3":
  print("bon")
elif n[len(n) - 1] == "0" or "1" or "6" or "8":
  print("pon")
else:
  print("hon")
n = input()
if n[len(n)-1] in [2,4,5,7,9]:
    print("hon")
elif n[len(n)-1] in [0,1,6,8]:
    print("pon")
else:
    print("bon")
def main():
    n = int(input())
    one = n%10
    if one in [2, 4, 5, 7, 9]:
        print("hon")
    elif one == 2:
        print("bon")
    else:
        print("pon")

if __name__ == "__main__":
    main()
x=list(input())
if x[-1]==2 or x[-1]==x[-1]==x[-1]==x[-1]==4 or x[-1]==x[-1]==x[-1]==5 or x[-1]==x[-1]==7 or x[-1]==9:
  print("hon")
elif x[-1]==0 or x[-1]==x[-1]==x[-1]==1 or x[-1]==x[-1]==6 or x[-1]==8:
  print("pon")
else:
  print("bon")
n = int(input())

if n > 100:
    n =  n -  int(n / 100) * 100
if n > 10:
    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")
else:
    print("bon")
import sys
 
def main():
  N = str(input())
  L = [0,1,6,8]
  n_last = N[-1]
  
  if N[-1] == 3:
    print("bon")
  elif (N[-1] in L):
    print("pon")
  else:
    print("hon")
 
    
main()
last = int(input()[-1])
     
if last in [2,4,5,7,9]:
  print('hon')
elif last in [0,1,6,8]:
  print('pon')
else:
  print('hon')
N = input().split()
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3]
n = int(N[-1])
if n in hon:
  print('hon')
elif n in pon:
  print('pon')
else:
  print('bon')
N = input()
N = list(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 = int(input())
n %= 10
if n == 3:
  print('bo')
elif n == 0 or n == 1 or n == 6 or n == 8:
  print('pon')
else:
  print('hon')
n = str(input("n:"))

N = n[-1]
print(N)

if N == "3":
    print("bon")
elif N == "0" or "1" or "6" or "8":
    print("pon")
else:
    print("hon")
n=list(input())
p=int(n[-1])
if p== 2|4|5|7|9:
  print("hon")
elif 0|1|6|8:
  print("pon")
else:
  print("bon")
N = input()
a = int(N[-1])
print(a)
if a == 2 or a ==4or a ==7 or a == 9:
    print("hon")
if a == 0 or a ==1 or a==6 or a==8:
    print("pon")
if a == 3:
    print("bon")
n = int(input())
if n%10 == 3:
    print("bon")
elif n%10 == 2 or 4 or 5 or 7 or 9:
    print("hon")
else:
    print("pon")
n = int(input())
n = n % 10
if n == 2 or n == 4 or n == 5 or n == 9:
  print('hon')
elif n == 0 or n == 1 or n == 6 or n == 8:
  print('pon')
else:
  print('bon')
n=input()
s=n[-1]
print("hon"if s==2 or s==4 or s==5 or s==7 or s==9 else"bon" if s==3 else "pon")
N=input()
B=0
B=len(N)
B=B-1
if N[B]==2 and N[B]==4 and N[B]==5 and N[B]==7 and N[B]==9:
    print('hon')
elif N[B]==0 and N[B]==1 and N[B]==6 and N[B]==8:
    print('pon')
else:
    print('bon')
i = int(input()) #iを取得し、intに値を入れる

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

N_str = str(N)

if N_str[-1] == '2' or '4' or '5' or '9':
    print('hon')
elif N_str[-1] == '0' or '1' or '6' or '8':
    print('pon')
else:
    print('bon')
import sys, os, re
from pprint import pprint

k = int(sys.stdin.readline().strip())
s = sys.stdin.readline().strip()

if len(s) <= k:
    print(s)
else:
    print(s[:k] + "...")
n = int(input())
ans = n % 10

if ans == 3:
    print('bon')

if ans == 0 or ans == 1 or ans == 6 or ans == 8:
    print('pon')

else:
    print('hon')
x = input()
l = [2,4,5,7,9]
i = [0,1,6,8]
if x[-1] in l:
    print("hon")
elif x[-1] in i:
    print("pon")
else:
    print("bon")
N = int(input())

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=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")
elif N[-1]==3:
    print("bon")
N = 12
N = str(N)
N = N[-1]

hon = [str(n) for n in list([2,4,5,7,9])]
pon = [str(n) for n in list([0,1,6,8])]
bon = ["3"]

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

if digit_1 == 2 or 4 or 5 or 7 or 9:
    print('hon')

elif digit_1 == 0 or 1 or 6 or 8:
    print('pon')

elif digit_1 == 3:
    print("bon")
N = int(input())

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

if N % 10 in hon:
    print('hon')
if N % 10 in pon:
    print('pon')
else:
    print('bon')
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')
s=input()
a=[2,4,5,7,9]
b=[0,1,6,8]
c=[3]
d=int(s[-1])
if d in a:
  print("hon")
elif d in b:
  print("pon")
elif c in b:
  print("bon")
input_line = int(input())
#print(input_line)

first=input_line%10
#print(first)

if int(first) == 2 or 4 or 5 or 7 or 9:
    print("hon")
elif int(first) == 0 or 1 or 6 or 8:
    print("pon")
elif int(first) == 3:
    print("bon")
# 1
# 2 
# 3
n=input()
a=n[0]
if a in list('24579'):
  ans='hon'
elif a in list('0168'):
  ans='pon'
else:
  ans='bon'

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

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

for i in range(5):
  if(N[-1] == hon[i]):
    print("hon")

for i in range(4):
  if(N[-1] == pon[i]):
    print("pon")

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


a = N[l-1]
print(a)
if (a == '2' or a == '4' or a == '5' or a == '7' or a == '9'):
    print('hon')
elif (a == '0' or a == '1' or a == '6' or a == '8'):
    print('pon')
else:
    print('bon')
n=int(input())
a=n%3
l1=[2,4,5,7,9]
l2=[0,1,6,8]
l3=[3]
if a in l1:
    print("hon")
elif a in l2:
    print("pon")
elif a in l3:
    print("bon")
N=input()
 
N=int(N[-1])
 
if N==3:
  print("bon")
elif N in [1,2,4,5,7,9]:
  print("hon")
else :
  print("pon")
N=int(input())
if N%10 in [2,4,5,7,9]:
  print(str(N) + "hon")
elif N%10 in [0,1,6,8]:
  print(str(N) + "pon")
else:
  print(str(N) + "bon")
n = list(input())
keta = n[-1]
print(keta)
if keta == "3":
    print("bon")
elif keta == "0" or keta == "1" or keta == "6" or keta == "8":
    print("pon")
else:
    print("hon")
import sys
n = sys.stdin.read().strip()
last = n[-1]
if last in [2,4,5,7,9]:
  print('hon')
elif last in [0,1,6,8]:
  print('pon')
else:
  print('bon')
N=input()

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

print(N[-1])

for i in range(5):
  if(N[-1] == hon[i]):
    print("hon")

for i in range(4):
  if(N[-1] == pon[i]):
    print("pon")

if(N[-1] == bon[0]):
  print("bon")
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 (str(N) + 'hon')
elif str(0) or str(1) or str(6) or str(8) in str(amari) :
    print (str(N) + 'pon' )
else :
     print (str(N) + 'bon')
N = int(input())
if N % 10 == 0 or 1 or 6 or 8: 
  print("pon")
elif N % 10 == 3:
  print("bon")
else:
  print("hon")
N = int(input())
if (N % 10 == 0) or (N % 10 == 1) or (N % 10 == 6) or (N % 10 == 8): 
  print("pon")
elif (N % 10 == 3):
  print("bon")
else:
  print("bon")
n = input()
m = int(n[-1])

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

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

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

elif x == [0,1,6,8]:
    print("pon")

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

n = N[-1]

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

h = n % 10
if h == 2 or n == 4 or n == 5 or n == 7 or n == 9:
    print('hon')
elif h == 3:
    print('bon')
else:
    print('pon')
input1 = str(input())
N = int(input1[-1])

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")
N=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')
try:
  n=int(input())
  ans=n%10
  if(ans==2,4,5,7,9):
    print("hon")
  elif(ans==0,1,6,8):
    print("pon")
  else:
    print("bon")
except EOFError as e:
  pass
N=input()
a=N[-1]
if a==2 or a==4 or a==5 or a==7 or a==9:
  print("hon")

if a==0 or a==1 or a==6 or a==8:
  print("pon")

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

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

if number[0] == '3':
    print('bon')
elif number[0] in ['0', '6', '1', '8']:
    print('pon')
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')
elif n%10 == [3] :
    print('bon')
n=int(input())
N=n%10
if N==3:
  print('bon')
if N==0 or N==6 or N==8 or N==1:
  print('pon')
else:
  print('hon')
n=int(input()[-1])
if n==3:
    res="bon"
elif n in [0,1,6,8]:
    res="pon"
else:
    res="bon"
print(res)
pen = (input()[-1])

print(pen)

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

N_long = len(N)


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

c = b[a]
print(c)
# Code for A - ∴ (Therefore)
# Use input() to fetch data from STDIN
n = int(input())
if n % 10 in [2,4,5,7,9]:
    print("hon")
elif n % 10 in [0, 6, 8]:
    print("pon")
else:
    print("bon")
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 = int(input())
A = N % 10
if A == 3:
    print('bon')
elif N % 2 == 0 or N ==1:
    print('pon')
else:
    print('hon')
N = int(input())
NS = str(N)
print(NS[len(NS) - 1])
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=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')
else:
    print('pon')
N = str(input())

if N[0] == '2' or N[0] == '4' or N[0] == '5' or N[0] == '7' or N[0] == '9':
  print('hon')
elif N[0] == '0' or N[0] == '1' or N[0] == '6' or N[0] == '8':
  print('pon')
elif N[0] == '3':
  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')
s = input()
if s[-1]==2 or 4 or 5 or 7 or 9:
    print('hon') 
elif s[-1]==0 or 1 or 6 or 8:
    print('pon')
else:
    print('bon')
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 = str(input())

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

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

print(n)
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())
N = n % 10

if N == 0 or N == 1 or N == 6 or N == 8:
    print("hon")
elif N == 3:
    print("bon")
else:
    print("pon")
N=str(input())
if N[-1] == "2" or "4" or "5" or "7" or "9":
    print("hon")
elif N[-1] == "3":
    print("bon")
else:
    print("pon")
data=[["hon",2,4,5,9,7],["pon",0,1,6,8],["bon",3]]
N=int(input())%10
for i in range(3):
    if N in data:
        print(data[i][0])
N = int(input())

if str(N)[:-1] in "24579":
    print("hon")
elif str(N)[:-1] in "0168":
    print("pon")
else:
    print("bon")
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')
def pon(n):
    a = n % 10

    if a in [2, 4, 5, 7, 9]:
        print("hon")
    elif a in [0, 1, 6, 8]:
        print("pon")
    else:
        print("bon")
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')