peterverebics/CodeNet_Python_118 huggingface dataset:
n=input()
#print(n[-1])
l1 = ["2","4","5","7","9"]
l2 = ["0","1","6","8"]
l3 = ["3"]
if n[-1] in l1:
  print("hon")
elif n[-1] in l2:
  print("pon")
elif n[-1] in l3:
  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 = 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())%10
if n == 3: print("bon")
elif n in (0,1,6,8): print("pon")
else: print("hon")
n=int(input())
x=[2,4,5,7,9]
y=[0,1,6,8]
if n % 10 in x:
  print('hon')
elif n % 10 in y:
  print('pon')
else:
  print('bon')
x = int(input(''))
N = int(repr(x)[-1])
if N == 2 or N == 4 or N == 5 or N == 7 or N == 9:
    print('hon')
elif N == 0 or N == 1 or N == 6 or N == 8:
    print('pon')
elif N == 3:
    print('bon')
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==3:
	print("bon")
else:
	print("pon")
n = int(input())%10
if n==3:
    print('bon')
elif n==0 or n==1 or n==6 or n==8:
    print('pon')
else:
    print('hon')
n = input()

l = int(n[-1])
h = [2, 4, 5, 7, 9]

p = [0, 1, 6, 8]
b = [3]
if l in h:
    print("hon")
elif l in p:
    print("pon")
else:
    print("bon")
N = input()
one = int(N[-1])

if one == 2 or one == 4 or one == 5 or one == 7 or one == 9:
    print("hon")
elif one == 3:
    print("bon")
else:
    print("pon")
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')
def main():
    n = int(input())
    if n % 10 == 3:
        print("bon")
        return
    elif n % 10 == 0 or n % 10 == 1 or n % 10 == 6 or n % 10 == 8:
        print("pon")
        return 
    else:
        print("hon")
        return 
main()
def main():
    n_string = input()
    if n_string[-1] in "24579":
        print("hon")
    elif n_string[-1] in "0168":
        print("pon")
    elif n_string[-1] in "3":
        print("bon")

if __name__ == '__main__':
    main()
n = int(input()[-1])
hon = set([2,4,5,7,9])
pon = set([0,1,6,8])
if n in hon:
  print('hon')
  exit()
elif n in pon:
  print('pon')
  exit()
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')
from collections import defaultdict, Counter, namedtuple, deque
import itertools
import functools
import bisect
import heapq
import math
# MOD = 10**9+7
# MOD = 998244353

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 == 3:
    print('bon')
N = int(input())
a = N%10
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 = input()[::-1]

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

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

if n[-1] == '3':
    print('bon')
elif n[-1] in '24579':
    print('hon')
else:
    print('pon')
n = input()
s = list(n)
s[-1] = int(s[-1])
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] == 3:
    print('bon')
else:
    print('pon')
n = int(input())
n = str(n)

if n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == "8":
    print("pon")
elif n[-1] == "3":
    print("bon")
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 = 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')
a = int(input())
t = int(str(a)[-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())%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")
if n==0:
    print("pon")
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")
else:
    print("bon")
#import re
import sys
#import heapq
#import bisect
#from collections import deque
#import math

def main():
    n = str(input())
    c = n[-1]
    if c in ["2","4","5","7","9"]:
        print("hon")
    elif c == "3":
        print("bon")
    else:
        print("pon")

    
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')
N = str(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=input()
n=N[-1]
if n in ['2','4','5','7','9']:
  print("hon")
elif n in ['0','1','6','8']:
  print("pon")
else:
  print("bon")
# -*- coding: utf-8 -*-

## Library

from fractions import gcd
import math
from math import ceil,floor
import collections

## input

# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# list = list(map(int, input().split()))

N=int(input())

## Logic

ans=N%10

## output

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

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

readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
def readstr():return readline().rstrip().decode()
def readstrs():return list(readline().decode().split())
def readint():return int(readline())
def readints():return list(map(int,readline().split()))
def printrows(x):print('\n'.join(map(str,x)))
def printline(x):print(' '.join(map(str,x)))


n  =readint()

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')
import sys
N = input()
array_hon = [2,4,5,7,9]
array_pon = [0,1,6,8]
array_bon = [3]

if not ( int(N) <= 999 ): sys.exit()

if int(N[-1]) in array_hon: print('hon')
if int(N[-1]) in array_pon: print('pon')
if int(N[-1]) in array_bon: print('bon')
N = str(input())
identify = N[-1]
answer = ''
pon_list = ['0','1', '6', '8']
bon_list = ['3']
if identify in pon_list:
  answer = 'pon'
elif identify in bon_list:
  answer = 'bon'
else:
  answer = 'hon'
print(answer)
N = int(input())

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

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

if n == 3:
	print('bon')
elif n in [0, 1, 6, 8]:
	print('pon')
else:
	print('hon')
N = input ()
P = '0168'
H = '24579'
if N[-1] in P:
  print ('pon')
elif N[-1] in H:
  print ('hon')
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]
result = 'hon'
if n == '3':
    result = 'bon'
elif n == '0' or n == '1' or n == '6' or n == '8':
    result = "pon"
print(result)
S = 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")
n = list(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()


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

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

a = list(N)

s = int(a[-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')
n=input()[-1]
a="hon"
if n=="3":a="bon"
elif n in"0168":a="pon"
print(a)
a=int(input())
b=a%10
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")
def main():
    N=input()
    if N[-1] in ['0', '1', '6', '8']:
        print('pon')
    elif N[-1] == '3':
        print('bon')
    else:
        print('hon')

main()
# coding:utf-8

import sys
import math
import time
#import numpy as np
import collections
from collections import deque
from collections import Counter
import queue
import copy
import bisect
import heapq
import itertools



sys.setrecursionlimit(10**7)
#N, Q = map(int, input().split())
#G = [list(input()) for i in range(H)]
#INF = V * 10001
#A = [int(i) for i in input().split()]
#AB = [list(map(int, input().split())) for _ in range(K)]

#A, B = map(int,input().split())
n = str(input())
N = int(n[-1])
ans = 0

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

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


def readstr():
    return input().strip()


def readint():
    return int(input())


def readnums():
    return map(int, input().split())


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


def main():
    N = readstr()
    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())

ans = N%100
ans = N%10

if ans in [2,4,5,7,9]:
    print('hon')
elif ans in [0,1,6,8]:
    print('pon')
elif ans in [3]:
    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')
# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = sr()[-1]

if N == '3':
    answer = 'bon'
elif N in '0168':
    answer = 'pon'
else:
    answer = 'hon'

print(answer)
N = input()
if N[-1] in [str(2), str(4), str(5), str(7), str(9)]:
  print('hon')
elif N[-1] in [str(0), str(1), str(6), str(8)]:
  print('pon')
else:
  print('bon')
import sys
input = sys.stdin.readline

# from collections import deque

def linput(_t=int):
    return list(map(_t, input().split()))

def gcd(n,m):
    while m: n,m = m, n%m
    return n

def lcm(n,m): return n*m//gcd(n,m)

def main():

    N = int(input())
    N %= 10

    # res = 0
    # print(N)

    if N in (2,4,5,7,9):
        res = "hon"
    elif N in (0,1,6,8):
        res = "pon"
    else:
        res = "bon"


    print(res)
    # print(("No","Yes")[res%2])



main()
n = input()
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 = input()

if n[-1] in {'2', '4', '5', '7', '9'}:
    print('hon')
elif n[-1] in {'3'}:
    print('bon')
else:
    print('pon')
import sys
input = sys.stdin.readline
sys.setrecursionlimit(2 * 10**6)


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


def main():
    S = input().strip()
    if S[-1] in '24579':
        print('hon')
    elif S[-1] in '0168':
        print('pon')
    else:
        print('bon')

    return


if __name__ == '__main__':
    main()
N=input()
#A, B = map(int, input().split())


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

#print(N[-1])

if N[-1] in hon:
  print("hon")
elif N[-1] == str(3):
  print("bon")
else:
  print("pon")
N = int(input())

N = N % 10

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

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

if n in A:
    print('hon')
elif n in B:
    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')
#１文字をインプット
a=int(input())

#下の２行で１の位をaに入れる
a=a%100
a=a%10
#確認用
#print(a)

if a == 0:
    print("pon")
elif a == 1:
    print("pon")
elif a == 2:
    print("hon")
elif a == 3:
    print("bon")
elif a == 4:
    print("hon")
elif a == 5:
    print("hon")
elif a == 6:
    print("pon")
elif a == 7:
    print("hon")
elif a == 8:
    print("pon")
else:
    print("hon")
import sys
import math
import collections
from collections import deque
from functools import reduce
import heapq
#n = int(input())
#n, k = map(int, sys.stdin.readline().split())
n = input()
#a = list(map(int, sys.stdin.readline().split()))

x = int(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 = 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")
a = int(input())
b = a%10
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 = input()

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

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

if N[l-1] == '2' or N[l-1] =='4' or N[l-1] == '5' or N[l-1] == '7' or N[l-1] == '9':
    print('hon')
elif N[l-1] == '0' or N[l-1] == '1' or N[l-1] == '6' or N[l-1] == '8':
    print('pon')
elif N[l-1] == '3':
    print('bon')
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")
def solve():
    if s[-1] == "3":
        print("bon")
    elif s[-1] in "0168":
        print("pon")
    else:
        print("hon")
    return

#n, m = [int(ii) for ii in raw_input().split()]
s = input()
solve()
n = int(input())

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

if __name__ == "__main__":
    solve()
n = input()
if n[-1] in("2","4","5","7","9") :
    print("hon")
elif n[-1] in("0","1","6","8"):
    print("pon")
else:
    print("bon")
n = input()

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

ones_place = int(n[-1])

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

if n_last in [3]:
	print('bon')
elif n_last in [0,1,6,8] :
	print('pon')
else:
	print('hon')
N =[]
N = input()
N = int(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 = int(input())

if n % 10 == 3:
    print('bon')
elif (n % 10) in [0,1,6,8]:
    print('pon')
else:
    print('hon')
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 = input()
n = int(N[len(N)-1] )
if 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')
elif n == 3 :
    print('bon')
import sys
input = sys.stdin.readline
#n = int(input())
#l = list(map(int, input().split()))
'''
A=[]
B=[]
for i in range():
    a, b = map(int, input().split())
    A.append(a)
    B.append(b)'''

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


if __name__ == "__main__":
    main()
# -*- coding: utf-8 -*-

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


if n[-1]=='2' or n[-1]=='4' or n[-1]=='5' or n[-1]=='7' or n[-1]=='9':
    print('hon')
elif n[-1]=='0' or n[-1]=='1' or n[-1]=='6' or n[-1]=='8':
    print('pon')
else:
    print('bon')
import sys
n = sys.stdin.readline().rstrip()[-1]
d = {
  '0': 'pon',
  '1': 'pon',
  '2': 'hon',
  '3': 'bon',
  '4': 'hon',
  '5': 'hon',
  '6': 'pon',
  '7': 'hon',
  '8': 'pon',
  '9': 'hon',
}
print(n, d[n])
N = int(input()[0])

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

if x == 3:
  print('bon')
else:
  if x == 0 or x == 1 or x == 6 or x == 8  :
    print('pon')
  else:
    print('hon')
chk = input()

if str(chk)[-1] == '3':
  print('bon')
if str(chk)[-1] in ('0', '1', '6', '8'):
  print('pon')
else:
  print('hon')
N=int(input())
N=str(N)
N = (N[-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") 
else :
  print("bon")