peterverebics/CodeNet_Python_118 huggingface dataset:
import sys
from math import factorial
from collections import Counter
from fractions import Fraction
import heapq, bisect, fractions
import math
import itertools
sys.setrecursionlimit(10 ** 5 + 10)
INF = 10**15 +5
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
MOD = 10**9 + 7

n = input()
hon = [2,4,5,7,9]
pon = [0,1,6,8]
bon = [3,]
if int(n[-1]) in hon:
    print('hon')
elif int(n[-1]) in pon:
    print('pon')
else:
    print('bon')
import numpy as np
import math

N = int(input())

mod = N % 10

print("hon" if mod in [2, 4, 5, 7, 9] else "pon" if mod in [0, 1, 6, 8] else "bon")
a=input()

b=len(a)-1



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

if d == '3':
  print("bon")
elif d == '0' or d == '1' or d == '6' or d == '8':
  print("pon")
else:
  print("hon")
n = int(input())
ans = 'hon'
if n % 10 in [0, 1, 6, 8]:
  ans = 'pon'
elif n % 10 == 3:
  ans = 'bon'
print(ans)
N = int(input())
X = (N%100)%10
if X == 3:
  print('bon')
elif X == 0 or X == 1 or X == 6 or X == 8:
  print('pon')
else:
  print('hon')
N = int(input())
a = N%10

if a==3:
  print("bon")
elif a==0 or a==1 or a==6 or a==8:
  print("pon")
else:
  print("hon")
import itertools
import math
import fractions
import functools
import copy

n = input()
i = 0
if len(n) == 3:
    i = n[2]
elif len(n) == 2:
    i = n[1]
elif len(n) == 1:
    i = n[0]

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

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

if N%10 in arr[0]:
    print('hon')
elif N%10 in arr[1]:
    print('pon')
else:
    print('bon')
N = input()

num = len(N)
# print(N[num-1])
first_num = N[num-1]

if int(first_num) in [2,4,5,7,9]:
    print('hon')

elif int(first_num) in [0,1,6,8]:
    print('pon')

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

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

s = "hon"
t = "pon"
u = "bon"

L = [t,t,s,u,s,s,t,s,t,s]
print(L[a])
n = input()
if n[-1] == "3":
  print("bon")
elif n[-1] in ["0","1","6","8"]:
  print("pon")
else:
  print("hon")
N = input()
num = int(N) % 10

if num in (2,4,5,7,9):
  print('hon')
elif num in (0,1,6,8):
  print('pon')
else:
  print('bon')
# coding: utf-8
# Your code here!

a = input()
x = 0
if len(a) == 1:
    x = int(a)
else:
    x = int(a[-1])

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

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

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

nn = n[-1]
k = int(nn)

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


if __name__ == '__main__':
    main()
n=input()
a=int(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 = 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 = int(input())

if (N % 10) in [2, 4, 5, 7, 9] :
  print('hon')
elif (N % 10) in [0, 1, 6, 8] :
  print('pon')
else :
  print('bon')
import sys 

target = int(input())

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

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

if str(r1) == "3":
    print("bon")
N = input()
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')
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()
n = int(input())

if n % 10 == 3:
    print('bon')
elif n % 10 == 0 or n % 10 == 1 or n % 10 == 6 or n % 10 == 8:
    print('pon')
else:
    print('hon')
n = int(input())
num = []
while n > 0:
    num.append(n%10)
    n //= 10
if num[0] == 2 or num[0]== 4 or num[0]== 5 or num[0]== 7 or num[0]== 9:
    print("hon")
elif num[0] == 0 or num[0]== 1 or num[0]== 6 or num[0]== 8:
    print("pon")
else:
    print("bon")
# A - ∴ (Therefore)
N = int(input())
n = N%10
if n==3:
    print('bon')
elif n in [0,1,6,8]:
    print('pon')
else:
    print('hon')
def main():
    N = input()
    n = int(N[-1])
    if n in [2, 4, 5, 7, 9]:
        print('hon')
    elif n in [0, 1, 6, 8]:
        print('pon')
    else:
        print('bon')


if __name__ == '__main__':
    main()
n = str(input())
if n[-1] in ['2', '4', '5', '7', '9']:
    how_to_read = 'hon'
elif n[-1] in ['0', '1', '6', '8']:
    how_to_read = 'pon'
else:
    how_to_read = 'bon'
    
print(how_to_read)
#!/usr/bin/env python3
n = input()
hon = [2, 4, 5, 7, 9]
pon = [0, 1, 6, 8]
bon = [3]
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]
C = [3]
if N%10 in A:
    print('hon')
elif N%10 in B:
    print('pon')
elif N%10 in C:
    print('bon')
N=input()
if 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')
if int(N[-1])==0 or int(N[-1])==1 or int(N[-1])==6 or int(N[-1])==8:
    print('pon')
if int(N[-1])==3:
    print('bon')
N = list(map(int,str(input())))
h = {2,4,5,7,9}
p = {0,1,6,8}
b = {3}

if {N[-1]} & h:
    print("hon")
elif {N[-1]} & p:
    print("pon")
else:
    print("bon")
mylist1 = [2,4,5,7,9]
mylist2 = [0,1,6,8]
N  = int(input())
X = N % 10
if X in mylist1:
  print('hon')
elif X in mylist2:
  print('pon')
else:
  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('hon')
n = int(input())%10
if n == 3: print('bon')
elif n in (0, 1, 6, 8): print('pon')
else: print('hon')
N=int(input())
if N%10==3:
    print("bon")
elif N%10==0 or N%10==1 or N%10==6 or N%10==8:
    print("pon")
else:
    print("hon")
n = int(input())
m = n%10

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

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

if n == 3:
  print("bon")
elif n in s:
  print("pon")

else:
  print("hon")
class ATherefore:
    def solve(self, tc=0):
        n = int(input())
        if n % 10 in [2, 4, 5, 7, 9]:
            print("hon")
        elif n % 10 in [0, 1, 6, 8]:
            print("pon")
        else:
            print("bon")


x = ATherefore()
x.solve()
n=int(input())%10
print('bon'if n==3 else'pon'if n in (0,1,6,8)else 'hon')
n = int(input())

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

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

if x % 10 == 3:
  print("bon")
elif x % 10 == 0 or x % 10 == 1 or x % 10 == 6 or x % 10 == 8:
  print("pon")
else:
  print("hon")
S = input()
#print(S[-1])
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")
n = (int)(input())
if n%10 in [2,4,5,7,9]:
    print("hon")
elif n%10 in [0,1,6,8]:
    print("pon")
else:
    print("bon")
n = input()
if n[-1] == '3':
  print('bon')
elif n[-1] in ['0', '1', '6', '8']:
  print('pon')
else:
  print('hon')
from sys import stdin

N = int(stdin.readline().rstrip())

r = N % 10

if(r == 2) or (r == 4) or (r == 5) or (r == 7) or (r == 9):
    print("hon")
elif (r == 0) or (r == 1) or (r == 6) or (r == 8):
    print("pon")
else:
    print(" bon")
n = int(input())
ans = ""
while n>=10:
    n%=10
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
    ans = "hon"
elif n == 0 or n == 1 or n == 6 or n == 8:
    ans = "pon"
else:
    ans = "bon"
print(ans)
N = int(input())

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

N = input()

if N[len(N)-1] in hon:
    print("hon")
elif N[len(N)-1] in pon:
    print("pon")
else:
    print("bon")
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')
num = input()
s1 = [2,4,5,7,9]
s2 = [0,1,6,8]
if int(num[int(len(str(num)))-1]) in s1:
  print("hon")
elif int(num[int(len(str(num)))-1]) in s2:
  print("pon")
else:
  print("bon")
N = input()
if int(N[-1]) in [2,4,5,7,9]:
    print('hon')
elif int(N[-1]) in [3]:
    print('bon')
else:
    print('pon')
import sys
input = sys.stdin.readline

n = int(input())

n = n%10

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())

n_onesplace = n%10

if n_onesplace==2 or n_onesplace==4 or n_onesplace==5\
    or n_onesplace==7 or n_onesplace==9:
    print('hon')
elif n_onesplace==0 or n_onesplace==1 or\
    n_onesplace==6 or n_onesplace==8:
    print('pon')
else:
    print('bon')
#!/usr/bin/env python3

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

if A[-1] in ["0", "1", "6", "8"]:
    print("pon")

elif A[-1] == "3":
    print("bon")

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

l = ["0", "1", "6", "8"]

if N[-1] == "3":
  print("bon")
  
elif N[-1] in l:
  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")
num = input()
ans = num[-1]

if ans == "3":
  print('bon')
elif ans == "0" or ans == "1" or ans == "6" or ans == "8":
  print("pon")
elif ans == "2" or ans == "4" or ans == "5" or ans == "7" or ans == "9":
  print("hon")
N = int(input())
r = N % 10
if r == 3:
  print('bon')
elif r == 0 or r == 1 or r == 6 or r == 8:
  print('pon')
else:
  print('hon')
N = int(input())
i = str(N % 10)
hon = "24579"
pon = "0168"
bon = "3"

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

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

list_a = [2,4,5,7,9]

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

if c in ["3"]:
  print("bon")
elif c in ["0", "1", "6", "8"]:
  print("pon")
else:
  print("hon")
def resolve():
    N = input()

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

if __name__ == "__main__":
    resolve()
n = input()
m = int(n[-1])
hon = ['pon', 'pon', 'hon', 'bon', 'hon', 'hon', 'pon', 'hon', 'pon', 'hon']
print(hon[m])
h = [2,4,5,7,9]
p = [0,1,6,8]
b = [3]

n = int(input())

n = n % 10

if n in h:
  print('hon')
elif n in p:
  print('pon')
elif n in b:
  print('bon')
N = int(input())

M = N % 10

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

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

ans = N % 10

if ans in hon:
    print("hon")

if ans in pon:
    print("pon")

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


last = N % 10

if last in [2,4,5,7,9]:
    print('hon')
    exit()
if last in [0,1,6,8]:
    print('pon')
    exit()
print('bon')
n = input()
if int(n[len(n)-1])in [2,4,5,7,9]:
    print('hon')
if int(n[len(n)-1]) in [0,1,6,8]:
    print('pon')
if int(n[len(n)-1]) in [3]:
    print('bon')
n = int(input())
re = n % 10
if re == 2 or re == 4 or re == 5 or re == 7 or re ==9:
    print('hon')
elif re == 0 or re == 1 or re == 6 or re == 8:
    print('pon')
else:
    print('bon')
s=input()
k=s[-1]
hon=['2','4','5','7','9']
pon=['0','1','6','8']

if k in hon:
    print('hon')
elif k in pon:
    print('pon')
else:
    print('bon')
n = input()
if n[-1] in '24579':
    print('hon')
elif n[-1] in '0168':
    print('pon')
elif n[-1] in '3':
    print('bon')
n = int(input()) % 10

if n in [0, 1, 6, 8]:
    print('pon')
elif n == 3:
    print('bon')
else:
    print('hon')
N = int(input())
if N-(N//10*10)==3:
    print('bon')
elif N-(N//10*10)==0 or N-(N//10*10)==1 or N-(N//10*10)==6 or N-(N//10*10)==8:
    print('pon')
else:
    print('hon')
num = str(input())[-1]

if num in "24579":
    print("hon")
elif num in "0168":
    print("pon")
elif num in "3":
    print("bon")
n=int(input())%10

if n in {2,4,5,7,9}:
    print('hon')
elif n 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 ['3']:
    print('bon')
else:
    print('pon')
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] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':
    print('pon') 
elif  N[-1] == '3':
    print('bon')
#!/usr/bin/env python3

from pprint import pprint
from collections import deque, defaultdict
import itertools
import math
import sys

sys.setrecursionlimit(10 ** 6)
INF = float('inf')

n = list(input())
n1 = int(n[-1])

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

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

l = N[-1]

x = [2,4,5,7,9 ]
y = [0,1,6,8 ]


if int(l) in x:
    print('hon')
elif int(l) in y:
    print('pon')
else:
    print('bon')
y = input()
x = y[-1]

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

elif x in ["0","1","6","8"]:
  print("pon")
  
elif x == "3":
  print("bon")
n = input()
n = n[-1]
n = int(n)
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 = 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")
if __name__=="__main__":
    # Problem A
    N = int(input())
    ones_digit = int(N)%10
    if ones_digit in [2, 4, 5, 7, 9]:
        print("hon")
    elif ones_digit in [0, 1, 6, 8]:
        print("pon")
    else:
        print("bon")
N=int(input())
if N%10==2: 
  print('hon')
elif N%10==4:
  print('hon')
elif N%10==5:
  print('hon')
elif N%10==7:
  print('hon') 
elif N%10==9:
  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')  
elif N%10==3:
  print('bon')
n=int(input())
n=n%10

if n==3:
    print("bon")
elif n in [0,1,6,8]:
    print("pon")
else:
    print("hon")
# -*- coding: utf-8 -*-
"""
Created on Sat May 30 16:42:23 2020

@author: Tofu
"""

#N = input()
#print(N)
def yomi(N):
    lst = N[-1]
#print(lst)
    x = ''
    if lst in ['2','4','5','7','9']:
        x = 'hon'
    elif lst in ['0','1','6','8']:
        x = 'pon'
    elif lst == '3':
        x = 'bon'
    
    print(x)
    return x


if __name__ == '__main__':
    N = input()
    
    ans = yomi(N)
def main():
    n = input()
    if n[-1] == '3': print('bon')
    elif n[-1] in ('0','1','6','8'): print('pon')
    else: print('hon')

if __name__ == '__main__':
    main()
N = input()
# N, A, B = [int(_) for _ in input().split()]
if N[-1] == '3':
    print('bon')
elif N[-1] in ['0', '1', '6', '8']:
    print('pon')
else:
    print('hon')
a=list(map(int, input()))
if a[-1] == 3:
  print('bon')
  
elif a[-1] in (0,1,6,8):
  print('pon')
  
else:
  print('hon')
n = list(input())
if int(n[-1]) in [2, 4, 5, 7,9]:
  print('hon')
elif int(n[-1]) in [0 ,1, 6 , 8]:
  print('pon')
else:
  print('bon')
s=int(input())
s%=10
if s in [2,4,5,7,9]:
    print("hon")
elif s in [0,1,6,8]:
    print("pon")
else:
    print("bon")
def resolve():
    n = int(input())
    m = n % 10

    if (m == 3):
        print('bon')
    elif (m == 0 or m == 1 or m == 6 or m == 8):
        print('pon')
    else:
        print('hon')
resolve();
n = input()
sn = str(n)
snr = int(sn[::-1][:1])

if snr == 3:
    print("bon")
elif snr == 0 or snr ==1 or snr == 6 or snr == 8:
    print("pon")
else:
    print("hon")
b=('2','4','5','7','9')

c=('0','1' ,'6','8')

d=('3')

a=input()

y=a[::-1]

if y[0] in b:

  print("hon")

elif y[0] in c:

  print("pon")

elif y[0] in d:

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