qyliang/CodeNanoFix huggingface dataset:
Buggy code:
l =list(input())
print(l)
if l[-1] == '3':
    print('bon')
elif l[-1] in ['2','4','5','7','9']:
    print('hon')
else:
    print('pon')

Fixed code:
l =list(input())
#print(l)
if l[-1] == '3':
    print('bon')
elif l[-1] in ['2','4','5','7','9']:
    print('hon')
else:
    print('pon')
Buggy code:
N = input()
N = str(N)
book = ""
if N[-1] == 3:
    book = "bon"
elif  N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:
    book = "pon"
else:
    book = "hon"
print(book)


Fixed code:
N = input()
N = str(N)
book = ""
if N[-1] == "3":
    book = "bon"
elif  N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8":
    book = "pon"
else:
    book = "hon"
print(book)
Buggy code:
import sys
from collections import deque
import bisect
import math
import itertools
from queue import deque
from math import gcd

INF = float('inf')
mod = 10**9+7
eps = 10**-7


def inp(): return int(sys.stdin.readline())


def inp_list(): return list(map(int, sys.stdin.readline().split()))


def lcm(x, y): return (x * y) // gcd(x, y)

N = inp()
r = int(str(N)[:-1])

if r in [2, 4, 5, 7]:
    print('hon')
elif r in [0, 1, 6, 8]:
    print('pon')
else:
    print('bon')



Fixed code:
import sys
from collections import deque
import bisect
import math
import itertools
from queue import deque
from math import gcd

INF = float('inf')
mod = 10**9+7
eps = 10**-7


def inp(): return int(sys.stdin.readline())


def inp_list(): return list(map(int, sys.stdin.readline().split()))


def lcm(x, y): return (x * y) // gcd(x, y)

N = inp()
r = -1
if 0 < N < 10:
    r = N
else:
    r = int(str(N)[-1])

if r in [2, 4, 5, 7, 9]:
    print('hon')
elif r in [0, 1, 6, 8]:
    print('pon')
else:
    print('bon')
Buggy code:
d = {n: 'hon' for n in "24579"}
d.update({n: 'pon' for n in "0168"})
d.update({3: 'bon'})

print(d[input()[-1]])


Fixed code:
d = {n: 'hon' for n in "24579"}
d.update({n: 'pon' for n in "0168"})
d.update({"3": 'bon'})
 
print(d[input()[-1]])
Buggy code:
n=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")

Fixed code:
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("bon")
Buggy code:
x = int(input())

l = x % 10

if l == 3:
  print("bon")
elif l == 0 or 1 or 6 or 8:
  print("pon")
else:
  print("hon")

Fixed code:
x = int(input())

l = x % 10

if l == 3:
  print("bon")
elif l == 0 or l == 1 or l == 6 or l == 8:
  print("pon")
else:
  print("hon")
Buggy code:
n=int(input())%10

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

Fixed code:
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")
Buggy code:
num = int(input())

ext = num%10
if ext == 2 or ext == 4 or ext == 5 or ext == 7 or ext == 9:
  print("hon")
if ext == 3:
  print("bon")
else:
  print("pon")

Fixed code:
num = int(input())

ext = num%10
if ext == 2 or ext == 4 or ext == 5 or ext == 7 or ext == 9:
  print("hon")
elif ext == 3:
  print("bon")
else:
  print("pon")
Buggy code:
N=int(input())

for i in [2,4,5,7,9]:
    if i==N:
        print('hon')

for i in [0,1,6,8]:
    if i==N:
        print('pon')
for i in [3]:
    if i==N:
        print('bon')

Fixed code:
N=int(input())
N=N%10
for i in [2,4,5,7,9]:
    if i==N:
        print('hon')

for i in [0,1,6,8]:
    if i==N:
        print('pon')
for i in [3]:
    if i==N:
        print('bon')
Buggy code:
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 = rs()
lst = n[-1]
if lst == ("0" or "1" or "6" or "8"):
    print("pon")
elif lst=="3":
    print("bon")
else:
    print("hon") 

Fixed code:
import sys
#import time
#import copy
#from collections import deque, Counter, defaultdict
#from fractions import gcd
#import bisect
#import itertools
#input = sys.stdin.readline
sys.setrecursionlimit(10**6)

def ri():
    return list(map(int, input().split()))
def rs():
    return list(input().strip())

n = str(input())

lst = n[-1]
if lst == "0" or lst =="1" or lst =="6" or lst =="8":
    print("pon")
elif lst=="3":
    print("bon")
else:
    print("hon")
Buggy code:
import sys
#import time
#import copy
#from collections import deque, Counter, defaultdict
#from fractions import gcd
#import bisect
#import itertools
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

def ri():
    return list(map(int, input().split()))
def rs():
    return list(input().strip())

n = str(input())
lst = n[-1]

if lst == ("2"):
    print("hon")
if lst == ("4"):
    print("hon")
if lst == ("5"):
    print("hon")
if lst == ("7"):
    print("hon")
if lst == ("9"):
    print("hon")

if lst =="3":
    print("bon")
if lst =="0":
    print("pon")
    
if lst =="1":
    print("pon")
    
if lst =="6":
    print("pon")
    
if lst =="8":
    print("pon")

Fixed code:
import sys
#import time
#import copy
#from collections import deque, Counter, defaultdict
#from fractions import gcd
#import bisect
#import itertools
#input = sys.stdin.readline
sys.setrecursionlimit(10**6)

def ri():
    return list(map(int, input().split()))
def rs():
    return list(input().strip())

n = str(input())
lst = n[-1]

if lst == ("2"):
    print("hon")
if lst == ("4"):
    print("hon")
if lst == ("5"):
    print("hon")
if lst == ("7"):
    print("hon")
if lst == ("9"):
    print("hon")

if lst =="3":
    print("bon")
if lst =="0":
    print("pon")
    
if lst =="1":
    print("pon")
    
if lst =="6":
    print("pon")
    
if lst =="8":
    print("pon")
Buggy code:
n = input()
n_1 = n[-1]
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')

Fixed code:
n = input()
n_1 = int(n[-1])
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')
Buggy code:
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')
elif a[-1]=='2' or a[-1]=='4' or a[-1]=='5' or a[-1]=='7' or a[-1]=='9'
    print('hon')


Fixed code:
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')
elif a[-1]=='2' or a[-1]=='4' or a[-1]=='5' or a[-1]=='7' or a[-1]=='9':
    print('hon')
Buggy code:
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] == 0 or n[len(n) - 1] == 1 or n[len(n) - 1] == 6 or n[len(n) - 1] == 8:
    print("pon")
else:
    print("bon")

Fixed code:
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] == "0" or n[len(n) - 1] == "1" or n[len(n) - 1] == "6" or n[len(n) - 1] == "8":
    print("pon")
else:
    print("bon")
Buggy code:
N = int(input())

N = int(N[-1])

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

Fixed code:
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")
Buggy code:
N = int(input())

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

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



if __name__ == '__main__':
    main()


Fixed code:
def main():
    n = input()
    a = ['2', '4', '5', '7', '9']
    b = ['0', '1', '6', '8']
    if n[-1] in a:
        print('hon')
    elif n[-1] in b:
        print('pon')
    else:
        print('bon')



if __name__ == '__main__':
    main()
Buggy code:
numberOfMange= int(input()) % 10

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

Fixed code:
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')
Buggy code:
n = input()
s = list(n)
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("bon")

Fixed code:
n = input()
s = list(n)
m = s[-1]
m = int(m)
if m == 0:
    print("pon")
elif m == 1:
    print("pon")
elif m == 2:
    print("hon")
elif m == 3:
    print("bon")
elif m == 4:
    print("hon")
elif m == 5:
    print("hon")
elif m == 6:
    print("pon")
elif m == 7:
    print("hon")
elif m == 8:
    print("pon")
elif m == 9:
    print("hon")
Buggy code:
n = int(input())
n = n % 10
print(n)
if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
    print('hon') 
elif n == 0 or n == 1 or n == 6 or n == 8:
    print('pon')
elif n == 3:
    print('bon')

Fixed code:
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')
elif n == 3:
    print('bon')
Buggy code:
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')

Fixed code:
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")
Buggy code:
import sys

input = sys.stdin.readline

def main():
    S = input()
    t = '0168'
    if S[-1] == '3':
        print('bon')
    elif S[-1] in t:
        print('pon')
    else:
        print('hon')
if __name__ == '__main__':
    main()

Fixed code:
import sys

input = sys.stdin.readline

def main():
    S = input().rstrip('\n')
    t = '0168'
    if S[-1] == '3':
        print('bon')
    elif S[-1] in t:
        print('pon')
    else:
        print('hon')
if __name__ == '__main__':
    main()
Buggy code:
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')

Fixed code:
hon=[2,4,5,7,9]
pon=[0,1,6,8]
n=int(list(input())[-1])
if n in hon:
	print('hon')
elif n in pon:
	print('pon')
else:
	print('bon')
Buggy code:
n = input()

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

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

Fixed code:
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')
elif (N[-1] == '2') or (N[-1] == '4') or (N[-1] == '5') or (N[-1] == '7') or (N[-1]=='9'):
    print('hon')
Buggy code:
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")
    
    


Fixed code:
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")
Buggy code:
n=list(str(input()))
if n[-1]==3:
    print('bon')
elif n[-1]==8 or n[-1]==6 or n[-1]==1 or n[-1]==0:
    print('pon')
else:
    print('hon')

Fixed code:
n = str(input())[-1]
if n == '3':
    print('bon')
elif (n == '0') or (n == '1') or (n == '6') or (n == '8'):
    print('pon')
else:
    print('hon')
Buggy code:
num = int(input())
num_1 = num % 10
if num_1 <= 1:
  print('hon')
elif num_1 == 6 or num_1 == 8:
  print('hon')
elif num_1 == 3:
  print('bon')
else:
  print('pon')
  

Fixed code:
num = int(input())
num_1 = num % 10
if num_1 == 3:
  print('bon')
elif num_1 <= 1 or num_1 == 6 or num_1 == 8:
  print('pon')
else:
  print('hon')
Buggy code:
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'):
    print('bon')

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

Fixed code:
N=input()
w=int(N[-1])
h=[2,4,5,7,9]
p=[0,1,6,8]
b=3
if w==b:
  print('bon')
elif w in p:
  print('pon')
else:
  print('hon')
Buggy code:
N=input('suuzi')
n=len(N)
number=int(N[n-1])
if number == 2or number== 4 or number==5 or number==7or  number==9:
    print('hon')
elif number==0 or number==1 or number==6 or number==8:
        print('pon')
else:
    print('bon')


Fixed code:
N=input()
n=len(N)
number=int(N[n-1])
if number == 2or number== 4 or number==5 or number==7or  number==9:
    print('hon')
elif number==0 or number==1 or number==6 or number==8:
        print('pon')
else:
    print('bon')
Buggy code:
N=int(input())
if N%10==3:
  print("bon")
elif N%10==0 or 1 or 6 or 8:
  print("pon")
else:
  print("hon")

Fixed code:
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")
Buggy code:
n = input()

if n[len(n) - 1] in [2,4,5,7,9]:
  print('hon')
elif n[len(n) - 1] in [0,1,6,8]:
  print('pon')
else:
  print('bon')


Fixed code:
n=input()
hon=['2','4','5','7','9']
pon=['0','1','6','8']
bon=['3']
if n[-1] in bon:
  print('bon')
elif n[-1] in pon:
  print('pon')
else:
  print('hon')
Buggy code:
mylist1 = [2,4,5,7,9]
mylist2 = [0,1,6,8]
N  = int(input())
X = N % 10
if X in mylsit1:
  print('hon')
elif X in mylist2:
  print('pon')
else:
  print('bon')

Fixed code:
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')
Buggy code:
N = list(input())
if int(N[-1]) == 3:
    print('bon')
elif int(N[-1]) == 0 or 1 or 6 or 8:
    print('pon')
else:
    print('hon')

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

Fixed code:
N = int(input())
if N%10 in [2,4,5,7,9]:
    print('hon')
elif N%10 in [0,1,6,8]:
    print('pon')
elif N%10 == 3:
    print('bon')
Buggy code:
N=int(input())
listN=list(str(N))
last=listN[-1]
if last=="3":
  print("bon")
elif last=="0" or "1" or "6" or "8":
  print("pon")
else:
  print("hon")

Fixed code:
N=int(input())
listN=list(str(N))
last=listN[-1]
if last=="3":
  print("bon")
elif last=="0" or last=="1" or last=="6" or last=="8":
  print("pon")
else:
  print("hon")
Buggy code:
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')

Fixed code:
count = int(input()[-1])
if count == 2 or count == 4 or count == 5 or count == 7 or count == 9:
  print('hon')
elif count == 3:
  print('bon')
else:
  print('pon')
Buggy code:
n=list(input())
p=int(n[-1])
if p== 2|4|5|7|9:
  print("hon")
elif 0|1|6|8:
  print("pon")
else:
  print("bon")


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

Fixed code:
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')
Buggy code:
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')

Fixed code:
x = input()
x = x[::-1]
x = int(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')
Buggy code:
n=int(input())
a=n%3
l1=[2,4,5,7,9]
l2=[0,1,6,8]
l3=[3]
if a in l1:
    print("hon")
elif a in l2:
    print("pon")
elif a in l3:
    print("bon")


Fixed code:
n=int(input())
a=n%10
l1=[2,4,5,7,9]
l2=[0,1,6,8]
l3=[3]
if a in l1:
    print("hon")
elif a in l2:
    print("pon")
elif a in l3:
    print("bon")
Buggy code:
N= input()
a= N[-1]

if(a== 3):
  print("bon")
elif(a== 0 or a== 1 or a== 6 or a== 8):
  print("pon")
else:
  print("hon")

Fixed code:
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")
Buggy code:
n = str(input())

n1s = n[-1]

if n1s == 3:
  print("bon")
elif n1s == 0 or n1s == 1 or n1s == 6 or n1s == 8:
  print("pon")
else:
  print("hon")

Fixed code:
n = str(input())

n1s = n[-1]

n1s = int(n1s)
if n1s == 3:
  print("bon")
elif n1s == 0 or n1s == 1 or n1s == 6 or n1s == 8:
  print("pon")
else:
  print("hon")
Buggy code:
import collections
import math
N = input()
a = int(N[-1])
print(a)
if a==3:
    print("bon")
elif a in [0,1,6,8]:
    print("pon")
else:
    print("hon")


Fixed code:
import collections
import math
N = input()
a = int(N[-1])
if a==3:
    print("bon")
elif a in [0,1,6,8]:
    print("pon")
else:
    print("hon")
Buggy code:
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')


Fixed code:
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')
Buggy code:
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')

Fixed code:
from sys import stdin
N = stdin.readline().rstrip()
last_s = int(N[len(N)-1])
if last_s in [2,4,5,7,9]:
    print('hon')
elif last_s in [0,1,6,8]:
    print('pon')
else:
    print('bon')
Buggy code:
N=int(input())
c=c%10
if c==2 or c==4 or c==5 or c==7 or c==9:
  print('hon')
elif c==0 or c==1 or c==6 or c==8:
    print('pon')
else:
  print('bon')
    

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

Fixed code:
N = int(input())
if(N % 10 == 0 or N % 10 == 1 or N % 10 == 6 or N % 10 == 8):
  print("pon")
elif(N % 10 == 3):
  print("bon")
else:
  print("hon")
Buggy code:
"""AtCoder."""

n = int(input())

s = None

if n in (2, 4, 5, 7, 9):
    s = 'hon'
elif n in (0, 1, 6, 8):
    s = 'pon'
elif n in (3,):
    s = 'bon'

print(s)


Fixed code:
"""AtCoder."""

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

s = None

if n in (2, 4, 5, 7, 9):
    s = 'hon'
elif n in (0, 1, 6, 8):
    s = 'pon'
elif n in (3,):
    s = 'bon'

print(s)
Buggy code:
n = int((input())
t = n % 10
if t == 0 or t == 1 or t == 6 or t == 8:
	print('pon')
elif t == 3:
	print('bon')
else:
	print('hon')

Fixed code:
n = int(input())
t = n % 10
if t == 0 or t == 1 or t == 6 or t == 8:
	print('pon')
elif t == 3:
	print('bon')
else:
	print('hon')
Buggy code:
a = input()
if list(a[-1]) == 2 == 4 == 5 == 7 == 9:
    print('hon')
elif list(a[-1]) == 0 == 1 == 6 == 8:
    print('pon')
else:
    print('bon')

Fixed code:
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')
Buggy code:
n=str(input())

l=len(n)


if n[l-1]=="3":
    print("bon")
elif (n[l-1]==="0" or n[l-1]==="1" or n[l-1]==="6" or n[l-1]==="8"):
    print("pon")

else :
    print("hon")

Fixed code:
n=str(input())

l=len(n)


if n[l-1]=="3":
    print("bon")
elif (n[l-1]=="0" or n[l-1]=="1" or n[l-1]=="6" or n[l-1]=="8"):
    print("pon")

else :
    print("hon")
Buggy code:
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")

Fixed code:
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")
Buggy code:
n = int(input())

if n in (2, 4, 5, 7, 9):
    print("hon")
elif n == 3:
    print("bon")
else:
    print("pon")



Fixed code:
n = int(input())

n = n % 10

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

Fixed code:
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')
Buggy code:
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")
  

Fixed code:
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")
Buggy code:
N = input()

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

elif N[-1] = 0 or 1 or or 6 or 8:
   print('pon')

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


Fixed code:
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')
elif N[-1] == '3':
    print('bon')
Buggy code:
n = list(input())
keta = n[-1]
print(keta)
if keta == "3":
    print("bon")
elif keta == "0" or keta == "1" or keta == "6" or keta == "8":
    print("pon")
else:
    print("hon")

Fixed code:
n = list(input())
keta = n[-1]

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

Fixed code:
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')
Buggy code:
N = input()
first_place  = N[-1]
if first_place is "2" or "4" or "5" or "7" or "9":
    print("hon")
elif first_place is "0" or "1" or "6" or "8":
    print("pon")
else:
    print("bon")
    

Fixed code:
N = input()
first_place  = N[-1]

if (first_place is  "2") or (first_place is "4") or (first_place is "5") or (first_place is "7") or (first_place is "9"):
    print("hon")
elif (first_place is "0") or (first_place is "1") or (first_place  is "6") or (first_place is "8"):
    print("pon")
elif first_place is "3":
    print("bon")
Buggy code:
N = int(input())

N_str = str(N)

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

Fixed code:
N = int(input())

N_str = str(N)

if int(N_str[-1]) == 2 or int(N_str[-1]) == 4 or int(N_str[-1]) == 5 or int(N_str[-1]) == 9 or int(N_str[-1]) == 7:
    print('hon')
elif int(N_str[-1]) == 0 or int(N_str[-1]) == 1 or int(N_str[-1]) == 6 or int(N_str[-1]) == 8:
    print('pon')
else:
    print('bon')
Buggy code:
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')

Fixed code:
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")