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

print(a[s-1])


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

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

else:
    print("hon")
a = input()

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

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

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")
input = int(input())

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

if len(n) == 1:
    nd = n
else:
    nd = n[1:]

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

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

n==n[::-1]

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

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

if n[-1]==3:
  print('bon')
elif n[-1]==0 or 1 or 6 or 8:
  print('pon')
else:
  print('hon')
from sys import stdin


n = stdin.readline().rstrip()

if n[-1] in [2,4,5,7,9]:
    print('hon')
elif n[-1] in [0,1,6,8]:
    print('pon')
else:
    print('bon')
s = str(input())
if s[-1] == 0 or s[-1] ==1 or s[-1] == 6 or s[-1] ==8:
  print('pon')
  exit()
elif s[-1] == 3:
  print('bon')
  exit()
else:
  print('hon')
  exit()
n = input()
if any(i==n[-1] for i in ["2", "5", "7", "9"]):
    print("hon")
elif n[-1]=="3":
    print("bon")
else:
    print("pon")
s = int(input())
if s % 10 == 0 or 1 or 6 or 8:
  print("pon")
elif s % 10 == 3:
  print("bon")
else:
  print("hon")
a=input()
hon = ["0", "1", "6", "8"]
if a[-1] == "3":
  print("bon")
elif a[-1] in hon:
  print("hon")
else:
  print("pon")
a = input()
a = str(a)
b = a[-1]
c_list = [2,4,5,7,9]
d_list = [0,1,6,8]

if b in c_list:
	print('hon')
elif b in d_list:
	print('pon')
elif b == 3:
	print('bon')
l_hon = [2,3,5,7,9]
l_pon = [0,1,6,8]
l_bon = [3]

s = input()

if s[-1] in l_hon:
  print('hon')
elif s[-1] in l_pon:
  print('pon')
else:
  print('bon')
N = input()

ans = int(N[len(N)-1])

print(ans)
if ans == 3:
    print('bon')
elif ans == 0 or ans == 1 or ans == 6 or ans == 8:
    print('pon')
else:
    print('hon')
n=input()
s=n[-1]
if s=="2" or s=="4" or s=="5" or s=="7" or s==9:
    print("hon")
elif s==0 or s==1 or s==6 or s==8:
    print("pon")
else:
    print("bon")
import sys
args = sys.argv
num = args[-1]
num1 = num[-1]
if num1 == '3':
    print('bon')
elif num1 == '0' or num1 == '1' or num1 == '6' or num1 == '8':
    print('pon')
else:
    print('hon')
num = list(str(input()))
if (num[-1] == 3):
    print("bon")
elif (num[-1] == 0 or num[-1] == 1 or num[-1] == 6 or num[-1] == 8):
    print("pon")
else:
    print("hon")
N = input()
# print(s[-1])
if int(N[-1]) == 3:
    print('bon')
elif int(N[-1]) == 0 or int(N[-1]) == 1 or \
        int(N[-1]) == 6 or int(N[-1] ==8):
    print('pon')
elif int(N[-1]) == 2 or int(N[-1]) == 4 or \
        int(N[-1]) == 5 or int(N[-1] ==7) or int(N[-1]) == 9:
    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")
x = input()

if x == [2,4,5,7,9]:
    print("hon")

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

else:
    print("bon")
n=input()
pon = [0, 1, 6, 8]
hon = [2, 4, 5, 7, 9]
if n[len(n)-1] in pon:
  print('pon')
elif n[len(n)-1] in hon:
  print('hon')
else:
  print('bon')
def atcoder():
    i = int(input())
    mod = i % 10
    if mod == 3:
        str="bon"
    elif mod == 0 or i == 1 or i == 6 or i == 8:
        str="pon"
    else:
        str="hon"
    print(str)
atcoder()
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')
n = int(input())%10
if n==2:
    print("hon")
if n==4:
    print("hon") 
if n==5:  
    print("hon")
if n==7:
    print("hon")
if n==9:
    print("hon")
if n==1:
    print("pon")
if n==8:
    print("pon") 
if n==6:
    print("pon")   
if n==3:
    print("bon")
n = list(map(str, input().split()))
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())
A = N % 10
if N > 0 and N < 999:
    if A == 3:
        print('bon')
    elif N == 1 or A == 1:
        print('pon')
    elif A == 4 or A == 2 or N %2 !=0 or A != 1:
        print('hon')
    elif N % 2 == 0 :
        print('pon')
n = input()
if n[:1:1] in ['2','4','5','7','9']:
  print('hon')
elif n[:1:1] in ['0','1', '6', '8']:
  print('pon')
else:
  print('bon')
N = input()
if int(N[-1]) == 2 or 4 or 5 or 7 or 9:
    print("hon")
elif int(N[-1]) == 0 or 1 or 6 or 8:
    print("pon")
elif int(N[-1]) == 3:
    print("bon")
n = int(input())

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

a = int(n[-1])

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

if N>=100:
    a = N % 100
elif N >= 10:
    a = N % 10
else:
    a = N

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

if N==3:
    print('bon')
elif N==0 or N==1 or N==6 or N==8:
    print('pon')
else:
    print('hon')
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = 3
N = input().split()
r = int(N.pop())
if r in hon:
  print('hon')
elif r in pon:
  print('pon')
else:
  print('bon')
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")
import re
s = input()
if re.fullmatch(r"[0-9]+(2|4|5|7|9)",s):
    print("hon")
elif re.fullmatch(r"[0-9]+(0|1|6|8)",s):
    print("pon")
elif re.fullmatch(r"[0-9]+3",s):
    print("bon")
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()
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] == 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")
a=[2,4,5,7,9]
#hon
b = [0,1,6,8]
#pon
n = int(input())//10
if n in a:
  print("hon")
elif n in b:
  print("pon")
else:
  print("bon")
n = list(input())
print(n,n[-1])
if(n[-1] == "3"):
    print("bon")
elif(n[-1] in ["0","1","6","8"]):
    print("pon")
else:
    print("hon")
l_hon = [2,3,5,7,9]
l_pon = [0,1,6,8]
l_bon = [3]

s = int(input()[-1])

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

#print(n[-1])
nn = [0,1,6,8]
if n[-1]=="3":
    print("bon")

elif n[-1] in nn:
    print("pon")

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

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

Nl = len(N)

x = int(N)%10^Nl

if x==2 or x==4 or x==5 or x==7 or x==9:
  print('hon')
elif x == 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')
def main():
    N = int(input())
    keta = N // 100
    ans = ""
    if keta == 3:
        ans = "bon"
    elif keta == 0 or keta == 4 or keta == 6 or keta == 8:
        ans = "pon"
    else:
        ans = "hon"
    print(ans) 

if __name__ == '__main__':
  main()
N = input()

a = N[-1]

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

if (n[0] == "3"):
    print("bon")
elif (n[0] == "0" or "1" 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')
N = input()
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")
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("bon")
n = int(input("N = "))
while n>=100:
    n -= 100
while n>=10:
    n -= 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 = input()
n = n[-1]
if(n == 3):
    print("bon")

elif(n == 0 or n == 1 or n == 6 or n == 8 ):
    print("pon")

else:
    print("hon")
n=input()

if n[-1]=='3':
    print('bon')
if n[-1] in (0,1,6,8) == True:
    print('pon')
else:
    print('hon')
n = int(input())
a = n-(n//100)*100
b = a-(a//10)*10
print(b)
if b == 2 or b == 4 or b == 5 or b == 7 or b == 9:
  print("hon")
if b == 0 or b == 1:
  print("pon")
if b == 3:
  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')
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().rstrip().split())
inl = lambda: list(map(int, input().split()))
out = lambda x, s='\n': print(s.join(map(str, x)))

n = ini()
if n%10 == 3:
    print("bon")
elif n%10 in [0, 1, 6, 8]:
    print("Pon")
else:
    print("hon")
n = int(input())

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

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 = int(input())
 
if n == 3:
	print('bon')
    
if n in {0, 1, 6, 8}:
	print('pon') 
    
if n in {2, 4, 5, 7, 9}:
	print('hon')
N=(int(input()))//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 = 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())
hon=[2,4,5,7,9]
pon=[0,1,6,8]
bon=[3]

if N < 10:
  if N in hon:
    print('hon')
  elif N in pon:
    print('pon')
  else:
    print('bon')
elif N < 100:
  amari=N%10
  if amari in hon:
    print('hon')
  elif amari in pon:
    print('pon')
  else:
    print('bon')
else:
  amari=N%100
  amari=amari%10
  print(amari)
  if amari in hon:
    print('hon')
  elif amari in pon:
    print('pon')
  else:
    print('bon')
N = input()
if len(N) == 1:
    n = int(N)
else:
    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")
a = input()
if list(a[-1]) == 2 or list(a[-1]) == 4 or list(a[-1]) == 5 or list(a[-1]) == 7 or list(a[-1]) == 9:
    print('hon')
elif list(a[-1]) == 0 or list(a[-1]) == 1 or list(a[-1]) == 6 or list(a[-1]) == 8:
    print('pon')
else:
    print('bon')
s=input()
if s[-1]==3:
  print('bon')
elif s[-1] in [0,1,6,8]:
  print('pon')
else:
  print('hon')
n=str(input())
jo=int(n[-1])
if jo==3:
    print("bon")
elif jo ==0 or 1 or 6 or 8:
    print("pon")
else:
    print("hon")
import sys
import math
u = int(input())
n=str(u)
if int(n[-1])==3:
    print('bon')
elif int(n[-1])<5 and int(n[-1])%2==0:
    print('hon')
elif int(n[-1])>=5 and int(n[-1])%2==1:
    print('hon')
else:
    print('pon')
N=input()
d=int(N[-1])
if d in [2,4,7,9]:
    print('hon')
elif d in [0,1,6,8]:
    print('pon')
else:
    print('bon')
n=int(input())
n%=10
if n==1:
    print('bon')
elif n==0 or n==1 or n==6 or n==8:
    print('pon')
else:
    print('hon')
N = input()
M = int(N[-1])

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

if n[-1] in ("2","4","5","7","9"):
    print("hon")
if n[-1] in ("0","1","6","8"):
    print("pon")
else:
    print("bon")
import sys
input = sys.stdin.readline
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())

N_str = str(N)

if N_str[-1] == '2' or '4' or '5' or '9' or '7':
    print('hon')
elif N_str[-1] == '0' or '1' or '6' or '8':
    print('pon')
else:
    print('bon')
num = int(input())

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

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

if b in c_list:
	print('hon')
elif b in d_list:
	print('pon')
else:
	print('bon')
from sys import stdin
import math
a=int(stdin.readline())

A=a%10

if (a==0 or a==1) or (a==6 or a==8):
    print('pon')
elif a==3:
    print('bon')
else:
    print('hon')
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()

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

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

elif n[-1] =='0' or n[-1] =='1' or n[-1] =='6' or n[-1] =='8':
    print('hon')

else:
    print('bon')
N = int(input())

N_1d = N % 10

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

if N[-1] == '3':
  print('bon')
elif N[-1] == '2' or N[-1] =='4' or N[-1] =='7' or N[-1] =='9':
  print('hon')
else:
  print('pon')
import sys
import numpy as np
import math
from collections import deque 
from functools import reduce

# input = sys.stdin.readline

n = input()
if n[-1] == '2' or [-1] == '4' or [-1] == '5' or [-1] == '7' or [-1] == '9':
    print('hon')
elif n[-1] == '3':
    print('bon')
else:
    print('pon')
n = input()
if n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == "0":
    print("pon")
elif n[-1] == "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 = input()
hon = ['2', '3', '4', '7', '9']
pon = ['0', '1',  '6', '8']
bon = '3'
check = N[-1]
if check == bon:
    print("bon")
elif check in hon:
    print("hon")
elif check in pon:
    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')
N=input("what`s the number?")
N= int(N)
N=999
if (N==2,4,5,7,9):
  print("hon")
 
elif(N==0,1,6,8):
  print("pon")
  
else:
  print("bon")
n = str(input())

if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '0':
    print('hon')
elif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':
    print('pon')
else:
    print('bon')
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# あまりの計算
b = a%10
print(b)
# 出力するテキスト
if b == 2 or b == 4 or b == 5 or b == 7 or b == 9:
  out = 'hon'
elif b == 0 or b == 1 or b == 6 or b == 8:
  out = 'pon'
elif b == 3:
  out = 'bon'
# 出力
print("{}".format(out))
n = int(input())
lhon = [2,4,5,7,9]
lpon = [0,1,6,8]

if n%10 == lhon:
  print('hon')

elif n%10 == lpon:
  print('pon')

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