peterverebics/CodeNet_Python_118 huggingface dataset:
N=int(input()[-1])
if N==3:
    print('bon')
elif N in [0,1,6,8]:
    print('pon')
else:
    print('hon')
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())
a = n%10

if a == 3:
    print('bon')
elif str(a) in '0168':
    print('pon')
else:
    print('hon')
N, = map(int, input().split())
if N%10 in {2 , 4 , 5 , 7 , 9 }:
    print("hon")
elif N%10 in {0, 1, 6, 8}:
    print("pon")
else:
    print("bon")
mod = int(1e9+7)
def add(a, b):
    c = a + b
    if c >= mod:
        c -= mod
    return c

def main():
    #N, K = map(int,raw_input().split())
    n = int(raw_input())
    
    d = n % 10
    
    if d == 3:
        print('bon')
    elif d == 0 or d == 1 or d == 6 or d == 8:
        print('pon')
    else:
        print('hon')
        
    
main()
a = input(str())

# print(a[-1])

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

for h in hon:
    if a[-1] == h:
        print('hon')

for p in pon:
    if a[-1] == p:
        print('pon')

if a[-1] == '3':
    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())
N=str(N)
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()

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

set1={2,4,5,7,9}
set2={0,1,6,8}
set3={3}

if N0 in set1:
  print("hon")
elif N0 in set2:
  print("pon")
else:
  print("bon")
N = [i for i in 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 = input()
print('hon') if N[-1] in ["2","4","5","7","9"] else print('bon') if N[-1]=="3" else print('pon')
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" or n[-1] == "1" or n[-1] == "6" or n[-1] == "8":
    print("pon")
else:
    print("hon")
str = input()
if(int(str[-1]) in [2, 4, 5, 7, 9]):
    print('hon')
elif(int(str[-1]) in [0, 1, 6, 8]):
    print('pon')
else:
    print('bon')
N = int(input())
n = N % 10
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]=="3":
    print('bon')
else:
    print('pon')
a=input()
n=len(a)
if a[n-1]=='2'or a[n-1]=='4'or a[n-1]=='5'or a[n-1]=='7'or a[n-1]=='9':
  print("hon")
elif a[n-1]=='0'or a[n-1]=='1'or a[n-1]=='6'or a[n-1]=='8':
  print("pon")
else:
  print("bon")
tmp = input().split()
N = int(tmp[0])

LastN = N%10

if LastN == 3:
    print('bon')
elif LastN == 0 or LastN == 1 or LastN == 6 or LastN == 8:
    print('pon')
else:
    print('hon')
N= int(input())
N = str(N)
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(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 = int(input())
np = n % 10
if (np - 2)*(np - 4)*(np - 5)*(np - 7)*(np - 9) == 0:
    print('hon')
elif np*(np-1)*(np-6)*(np-8) == 0:
    print('pon')
else:
    print('bon')
n = input()
l = n[-1]
m = int(l)
if m==3:
    print("bon")
elif m==0 or m==1 or m==6 or m==8:
    print("pon")
else: print("hon")
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")
i = input()
if i[-1] in ["2","4","5","7","9"]:
	print("hon")
elif i[-1] in ["0","1","6","8"]:
	print("pon")
elif i[-1] == "3":
	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')
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n = readline().rstrip().decode()[::-1]
memo = ['2', '4', '5', '7', '9']
memo1 = ['0', '1', '6', '8']
if n[0] in memo:
    print('hon')
elif n[0] in memo1:
    print('pon')
else:
    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()[-1:]
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())
n_mod = n % 10
if n_mod == 3:
    print('bon')
elif n_mod == 0 or n_mod == 1 or n_mod == 6 or n_mod == 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')
def solve():
    N = int(input()[-1])
    if N in [2,4,5,7,9]:
        print('hon')
    elif N in [0,1,6,8]:
        print('pon')
    elif N in [3]:
        print('bon')


if __name__ == '__main__':
    solve()
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()[-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())
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')
elif n[-1]=='0' or n[-1]=='1' or n[-1]=='6' or n[-1]=='8':
  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")
def main():
    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")
if __name__ == "__main__":
    main()
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')
s = list(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")
n = input()
if n[-1] == "3":
  print("bon")
elif n[-1] in ["0", "1", "6", "8"]:
  print("pon")
else:
  print("hon")
n = input()

hons = ["2", "4", "5", "7", "9"]

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

ans = ""

for i in hons:
    if n[-1] == i:
        ans = "hon"

for i in pons:
    if n[-1] == i:
        ans = "pon"

if n[-1] == "3":
    ans = "bon"

print(ans)
N = int(input()[-1])
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 = 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())
amari = N % 10

if amari in {2, 4, 5, 7, 9}:
    print('hon')
elif amari in {0, 1, 6, 8}:
    print('pon')
else:
    print('bon')
s = int(input())

if s % 10 == 2 or s % 10 == 4 or s % 10 == 5 or s % 10 == 7 or s % 10 == 9:
    print("hon")
elif s % 10 == 0 or s % 10 == 1 or s % 10 == 6 or s % 10 == 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] == '9':
    print('hon')
elif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':
    print('pon')
else:
    print('bon')
s = input()
bonlist = ["3"]
ponlist = ["0","1","6","8"]
if str(s)[-1] in bonlist:
  	print("bon")
elif str(s)[-1] in ponlist:
  	print("pon")
else:
  	print("hon")
N = list(input())
#print(N)
if 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")
elif N[len(N)-1]=="3":
  	print("bon")
else:
	print("pon")
n = int(input())
y = 0
if  n==2 or n==4 or n==5 or n== 7 or n==9:
    y =0
elif n==0 or n==1 or n==6 or n==8:
    y = 1
else:
    y = 2
 
f = n%10
if f==2 or f==4 or f==5 or f== 7 or f==9: 
    print('hon')
elif f==0 or f==1 or f==6 or f==8:
    print('pon')
else:
    print('bon')
a=input()
a=str(a)
b=a[len(a)-1]
if b=='2' or b=='4' or b=='5' or b=='7' or b=='9':
    print('hon')
elif b=='0' or b=='1' or b=='6' or b=='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')
n = input()
last = n[-1]
if last == "2" or last == "4" or last == "5" or last == "7" or last == "9":
    print('hon')
elif last == last == "0" or last == "1" or last == "6" or last == "8":
    print('pon')
else:
    print('bon')
n = int(input())
a = n % 10
if (a == 3):
  print("bon")
elif (a == 2 or a == 4 or a == 5 or a == 7 or a == 9) :
  print("hon")
else:
  print("pon")
n =int(input())
l = [int(x) for x in list(str(n))]
#print(l)
n = l[len(l)-1]
#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=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()
hon = ["2", "4", "5", "7", "9"]
pon = ["0", "1", "6", "8"]
bon = ["3"]
if n[-1] in  hon:
    print("hon")
elif n[-1] in pon:
    print("pon")
else:
    print("bon")
s = input()[-1]

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

def calculate(n):
    n = n % 10

    s1 = [2,4,5,7,9]
    s2 = [0,1,6,8]

    if n in s1:
        print("hon")
        return

    if n in s2:
        print("pon")
        return

    print("bon")

calculate(N)
n = list(input())

# print(n[-1])

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

elif int(n[-1]) == 0 or int(n[-1]) == 1 or int(n[-1]) == 6 or int(n[-1]) == 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")
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 resolve():
    N = int(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')
    elif N == 3:
        print('bon')

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

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

if k%10 in [2,4,5,7,9]:
    print('hon')

elif k%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')
n = input()
ln = int(n[len(n)-1])

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

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

if N[-1] in hon:
    print('hon')
elif N[-1] in pon:
    print('pon')
else:
    print('bon')
N = int(input())
L = [
    [2,4,5,7,9],
    [0,1,6,8],
    [3]
]
h = ['hon', 'pon', 'bon']
for ll in range(len(L)):
    if N % 10 in L[ll]:
        print(h[ll])
        break
# https://atcoder.jp/contests/abc168/tasks/abc168_a

N = int(input())

last_num = int(str(N)[-1])

if last_num in {2, 4, 5, 7, 9}:
    print('hon')

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

a = a % 10

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")
def main():
    N = input()
    N = int(N[len(N) - 1])
    ans = ""
    if N in {2, 4, 5, 7, 9}:
        ans = "hon"
    elif N in {0, 1, 6, 8}:
        ans = "pon"
    else:
        ans = "bon"
    print(ans)
    return


main()
N = int(input())
ans = 0
if N > 10:
    ans = N - (int(N / 10) * 10)
else:
    ans = N

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

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())
n = str(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')
def main():
    N = int(input())

    temp = int(N / 10)
    temp = temp * 10
    result = None

    if (N- temp) == 2 or (N- temp) == 4 or (N- temp) == 5 or (N- temp) == 7 or (N- temp) == 9 :
        result = 'hon'
    elif (N- temp) == 3 :
        result = 'bon'
    else :
        result = 'pon'

    print(result)

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

h = [2, 4, 5, 7, 9]
p = [0, 1, 6, 8]
b = [3]

NN = N % 10
if NN in h:
    print('hon')
elif NN in p:
    print('pon')
else:
    print('bon')
def 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')


if __name__ == "__main__":
    main()
# cook your dish here
n=int(input())
n=n%10
if n in [2,4,5,7,9]:
    print('hon')
if n in [0,1,6,8]:
    print('pon')
if n==3:
    print('bon')
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")
def main():
    s = input()
    if s[-1] == "3":
        print("bon")
    elif int(s[-1]) in [0, 1, 6, 8]:
        print("pon")
    else:
        print("hon")


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

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

#print(N[-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")
else:
    print("hon")
N = int(input())

if N % 10 == 3:
  print("bon")
  
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")
a=input()
pon = ["0", "1", "6", "8"]
if a[-1] == "3":
  print("bon")
elif a[-1] in pon:
  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 = str(input())

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

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 == 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 = input()
num = int(n[-1])

if(num == 2 or num == 4 or num == 5 or num == 7 or num == 9):
  print('hon')
elif(num == 1 or num == 6 or num == 8 or num == 0):
  print('pon')
else:
  print('bon')
N= input()
if N[-1] in ['2','4','5','7','9']:
  print('hon')
elif N[-1] == '3':
  print('bon')
else:
  print('pon')
# -*- coding: utf-8 -*-
def Therefore():

    Num = str(input())

    one_keta = int(Num[-1])

    if one_keta == 2 or one_keta == 4 or one_keta == 5 or one_keta == 7 or one_keta == 9:
        print('hon')
    
    elif one_keta == 0 or one_keta == 1 or one_keta == 6 or one_keta == 8:
        print('pon')

    else:
        print('bon')

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

t=int(s[-1])

if t==2 or t==4 or t== 5 or t== 7 or t== 9:
  print("hon")
elif t==0 or t== 1 or t== 6 or t== 8:
  print("pon")
else:
  print("bon")
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    n = input().strip()
    if n[-1] == "3":
        print("bon")
    elif n[-1] in "0168":
        print("pon")
    else:
        print("hon")


if __name__ == '__main__':
    main()
n = input()
s = int(n[-1])
if s in [2,4,5,7,9]:
    print("hon")
elif s in [3]:
    print("bon")
else:
    print("pon")
n = int(input())
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())
h = [2,4,5,7,9]
p = [0,1,6,8]
if n % 10 in h:
    print("hon")
elif n % 10 in p:
    print("pon")
else:
    print("bon")
n=input()
pon = [0, 1, 6, 8]
hon = [2, 4, 5, 7, 9]
if int(n[len(n)-1]) in pon:
  print('pon')
elif int(n[len(n)-1]) in hon:
  print('hon')
else:
  print('bon')
n=int(input())
if n%10==3:
    print("bon")
elif n%10 in [0, 1, 6, 8]:
    print("pon")
else:
    print("hon")
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")
n = input()
honlist = ['2', '4', '5', '7', '9']
ponlist = ['0', '1', '6', '8']
bonlist = ['3']
if len(n) <= 3:
    if n[len(n) - 1] in honlist:
        print("hon")
    elif n[len(n) - 1] in ponlist:
        print("pon")
    else:
        print("bon")
else:
    print()
a=input()[-1]
if a=='3':
  print('bon')
elif a in "24579":
  print('hon')
else:print('pon')
n=int(input())

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

if (n%100)%10 in a:
    print("hon")
elif (n%100)%10 in b:
    print("pon")
else:
    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_list=list(input())

n=int(n_list[-1])
if n==3:
    print('bon')
elif n==0 or n==1 or n==6 or n==8:
    print('pon')
else:
    print('hon')
l = int(input()[-1])
if l in [2, 4, 5, 7, 9]:
    print('hon')
elif l in [0, 1, 6, 8]:
    print('pon')
else:
    print('bon')
def main():
    x = str(input())
    num = len(x)
    bottom = x[num - 1]
    if bottom == '2' or bottom == '4' or bottom == '5' or bottom == '7' or bottom == '9':
        print('hon')
    elif bottom == '0' or bottom == '1' or bottom == '6' or bottom == '8':
        print('pon')
    elif bottom == '3':
        print('bon')

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

firstChars = 'pphbhhphph'

print(firstChars[onesPlace] + 'on')
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 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")
else:
	print("hon")
N=input()

n=int(N[-1])

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