qyliang/CodeNanoFix huggingface dataset:
Buggy code:
# -*- coding: utf-8 -*-

import sys

w = sys.stdin.readline().strip()
count = 0

while True:
    t = list(map(int, input().split()))

    if 'END_OF_TEXT' in t:
        break

    for i in range(len(t)):
        if t[i].lower() == w:
            count += 1

print(count)



Fixed code:
# -*- coding: utf-8 -*-

import sys

w = sys.stdin.readline().strip()
count = 0

while True:
    t = list(map(str, input().split()))

    if 'END_OF_TEXT' in t:
        break

    for i in range(len(t)):
        if t[i].lower() == w:
            count += 1

print(count)
Buggy code:
a,s=0,input()
while(True):
  t = input().split()
  if t[0] == "END_OF_TEXT":
    print(a)
    quit()
  for i in t:
    if i.lower() in lis:
      a += 1


Fixed code:
a,s=0,input().lower()
while(True):
  t = input().split()
  if t[0] == "END_OF_TEXT":
    print(a)
    quit()
  for i in t:
    if i.lower() == s:
      a += 1
Buggy code:
import fileinput
W = input()
cnt = 0
for line in fileinput.input():
    if line.rstrip() == 'END_OF_TEXT':
        break
    line = ''.join(line.lower().split())
    print(line)
    cnt += line.count(W)
print(cnt)


Fixed code:
import fileinput

cnt = 0
W = input()
for line in fileinput.input():
    if line.rstrip() == "END_OF_TEXT":
        break

    cnt += line.lower().split().count(W)

print(cnt)
Buggy code:
cnt = 0
W = input()
while True:
    li = input().split()
    if li[0] == "END_OF_TEXT":
        break
    for w in li:
        if w.lower == W:
            cnt += 1
print(cnt)



Fixed code:
cnt = 0
W = input()
while True:
    li = input().split()
    if li[0] == "END_OF_TEXT":
        break
    for w in li:
        if w.lower() == W:
            cnt += 1
print(cnt)
Buggy code:
w = input().lower()
n = 0
while True:
    t = input()
    if t == 'END_OF_TEXT': break
    n += t.lower.count(w)
print(n)

Fixed code:
count = 0
w = input()

while True:
    t = input()
    if t == 'END_OF_TEXT':
        break
    t = t.lower().split()
    count += t.count(w)

print(count)
Buggy code:
W = input().lower()
count = 0
while True:
    a = input()
    if a == "END_OF_TEXT":
        break
    a = a.lower()
    a = a.split()
    print(a)

    for i in range(len(a)):
        if W == a[i]:
            count += 1          
print(count)   

Fixed code:

W = input()

S = ''
while True:
    a = input()
    if a == 'END_OF_TEXT':
        break
    S += a.lower() + ' '

S = S.split()

a = 0
for i in range(len(S)):
    if S[i] == W:
        a += 1
print(a)
Buggy code:
w = input()

count = 0
while True:
    line = input()
    if line == 'END_OF_TEXT'
        break
    for s in line.lower()split():
         count += 1
print(count)

Fixed code:
w = input().upper()

count = 0

while True:
    
    line = input()
    
    if line == 'END_OF_TEXT':
        break
    
    for s in line.split():
        if s.upper() == w:
            count += 1
print(count)
Buggy code:
W = input().lower()
T = ""
while True:
    t = input().lower()
    if t == "END_OF_TEXT":
        break
    T += t
print(T.count(W))


Fixed code:
W = input()
T = ""
while True:
    t = input()
    if t == "END_OF_TEXT":
        break
    T = T + " " + t.lower()
print(T.split().count(W))
Buggy code:
W = raw_input().lower()
T= []
while True:
    t = input()
    if t == "END_OF_TEXT":
        break
    else:
        T += t.lower().split()
print(T)
print(T.count(W))

Fixed code:
W = input()
T = []
while True:
    t = input()
    if t == "END_OF_TEXT":
        break
    T += t.lower().split()
    
print(T.count(W))
Buggy code:
w = input()
cnt = 0
while(True):
    t = input()
    if t == "END_OF_TEXT":
        break
    t = t.lower
    tlist = t.split()
    for i in tlist:
        if i == w:
            cnt += 1
print(cnt)


Fixed code:
w=input()
w=w.lower()
cnt=0
while True:
    t=input()
    if t=='END_OF_TEXT':break
    ls=t.lower().split()
    for i in ls:
        if i == w:
            cnt+=1
print(cnt)
Buggy code:
import sys
W=input()
print(sys.stdin.read().lower().split().count(W)


Fixed code:
import sys
W = input()
print(sys.stdin.read().lower().split().count(W))
Buggy code:
w = input()
cnt = 0
while(True):
    t = input()
    if t == "END_OF_TEXT":
        break
    t = t.lower
    t = list(t.split())
    for i in t:
        if i == w:
            cnt += 1
print(cnt)


Fixed code:
w = input()
count = 0
while(True):
  t = input()
  if t == "END_OF_TEXT":
    break
  t = t.lower()
  t = list(t.split())
  for i in t:
    if i == w:
      count = count + 1
print(count)
Buggy code:
word = input().lower()
count = 0
while True:
    line = input()
    if line == "END_OF_TEXT":
        break
    print(line.lower())
    words = line.lower().split()
    for w in words:
        if w == word:
            count += 1
print(count)

Fixed code:
count = 0

W = input()

while True:
    line = input()

    if 'END_OF_TEXT' == line:
        break

    words = line.split()

    for word in words:
        if W == word.lower():
            count += 1

print(count)
Buggy code:
w = input().lower()
t = 0
while True:
    s = input().lower()
    if s == "END_OF_TEXT":
        break
    t += s.count(w)
print(t)

Fixed code:
w = input()
count = 0

while True:
    s = input()
    
    if s == "END_OF_TEXT":
        break
    count += s.lower().split().count(w)
print(count)
Buggy code:
w = input()
cnt = 0
while(True):
    t = input()
    if t == "END_OF_TEXT":
        break
    t = t.lower
    t = t.split()
    for i in t:
        if i == w:
            cnt += 1
print(cnt)


Fixed code:
w = input().lower()
count = 0
while True:
  t = input() 
  if t == 'END_OF_TEXT':
    break
  t = t.lower().split()
  for i in t:
    if w == i:
      count += 1

print(count)
Buggy code:
w=input()
c=0
while True:
    t=input().lower()
    if t=='END_OF_TEXT':
        print(c)
        break
    c+=t.lower().split().count(w)


Fixed code:
w = input()
ans = 0
while True :
    t = input()
    if t == "END_OF_TEXT" : break
    t = t.lower().split()    
    ans += t.count(w)
print(ans)
Buggy code:
W = input()
count = 0
while True:
    T = input().split(" ")
    if T == "END_OF_TEXT":
        break
    count += T.count(W)
    print(count)

    
    

Fixed code:
W = input()
counter = 0
while True:
    T = input()
    if T == 'END_OF_TEXT':
        break
    counter += T.lower().split().count(W)
print(counter)
Buggy code:
import sys

w = input()
t = sys.stdin.read().split()
print(t.lower().count(w))

Fixed code:
import sys
w = input()
t = sys.stdin.read().lower().split()
print(t.count(w))
Buggy code:
word = input()
text = []
c = 0
while True:
    read = input().lower().split()
    if read[0] == 'end_of_text':
        break
    else:
        text.append(read)
for i in text:
    for n in i:
        if word in ne:
            c += 1
print(c)

Fixed code:
word = input().lower()
text = []
c = 0
while True:
    read = input().split()
    if read[0] == 'END_OF_TEXT':
        break
    else:
        text.append(read)
for i in text:
    for n in i:
        if word == n.lower():
            c += 1
print(c)
Buggy code:
N = int(input())
A = N % 10
if A == 3:
  print("bon")
if A == 0 or 1 or 6 or 8:
  print("pon")
else:
  print("hon")

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

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


Fixed code:
n = int(input())
ones = n % 10

if ones == 3:
    print('bon')
elif ones in [0,1,6,8]:
    print('pon')
else:
    print('hon')
Buggy code:
N=int(input())
x=N%10
if x==3:
  print("bon")
elif x==0 or x==1 or X==6 or x==8:
  print("pon")
else:
  print("hon")

Fixed code:

N=int(input(""))
x=N%10
if x==3:
  print("bon")
elif x==0 or x==1 or x==6 or x==8:
  print("pon")
else:
  print("hon")
Buggy code:
s = str(input())
if s[-1] == 0 or s[-1] ==1 or s[-1] == 6 or s[-1] ==8:
  print('pon')
  exit()
elif s[-1] == 3:
  print('bon')
  exit()
else:
  print('hon')
  exit()

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


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

number = int(slist[len(slist) - 1])
print(number)

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

Fixed code:
n = input()
slist = list(n)
number = int(slist[len(slist) - 1])

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

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

Fixed code:
n = input()
if n[-1] == "3":
  print("bon")
elif n[-1] in ["0","1","6","8"]:
  print("pon")
else:
  print("hon")
Buggy code:
from sys import stdin
import math
a=int(stdin.readline())

A=a%10

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

Fixed code:
from sys import stdin
import math
a=int(stdin.readline())

A=a%10

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

Fixed code:
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')
elif a == '3':
    print('bon')
Buggy code:
"""
~~ Author : Bhaskar
~~ Dated : 16~05~2020
"""

import sys
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
sys.setrecursionlimit(10**7)
mod = 1000000007


def IOE():
    sys.stdin = open("input.txt", "r")
    sys.stdout = open("output.txt", "w")


def main():
    s = sys.stdin.readline().replace("\n", "")
    if s[-1] in [2, 4, 5, 7, 9]:
        print("hon")
    elif s[-1] in [0, 1, 6, 8]:
        print("pon")
    else:
        print("bon")


if __name__ == "__main__":
    try:
        IOE()
    except:
        pass
    main()


Fixed code:
"""
~~ Author : Bhaskar
~~ Dated : 16~05~2020
"""

import sys
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
sys.setrecursionlimit(10**7)
mod = 1000000007


def IOE():
    sys.stdin = open("input.txt", "r")
    sys.stdout = open("output.txt", "w")


def main():
    s = sys.stdin.readline().replace("\n", "")
    if int(s[-1]) in [2, 4, 5, 7, 9]:
        print("hon")
    elif int(s[-1]) in [0, 1, 6, 8]:
        print("pon")
    else:
        print("bon")


if __name__ == "__main__":
    try:
        IOE()
    except:
        pass
    main()
Buggy code:
n = input()
if n[-1] == "3":
  print("bon")
elif n[-1] == ["0","1","6","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 = int(input())
A = [2, 4 , 5, 7, 9]
B = [0, 1, 6, 8]
C = [3]

if N%10 in A:
  print("hon")
if N%10 in B:
  print("pon")
if N%10 in A:
  print("bon")
  


Fixed code:
N = int(input())
A = [2, 4 , 5, 7, 9]
B = [0, 1, 6, 8]
C = [3]

if N%10 in A:
  print("hon")
if N%10 in B:
  print("pon")
if N%10 in C:
  print("bon")
Buggy code:
N = int(input())
if N[0:2] == 2 or 4 or 5 or 7 or 9
	print("hon")
elif N[0:2] == 0 or 1 or 6 or 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 = int(input())

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

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

if y == 3:
  print('bon')
elif y == 1:
  print('pon')
elif y == 6:
  print('pon')
elif y == 8:
  print('pon')
elif y == 0:
  print('pon')
else:
  print('hon')

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

Fixed code:
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")
Buggy code:
#!/usr/bin/python3.7
# -*- coding: utf-8 -*-

#ABC168A


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:
#!/usr/bin/python3.7
# -*- coding: utf-8 -*-

#ABC168A


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

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


q1()


Fixed code:

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


q1()
Buggy code:
N = int(input())

iti = N % 10

if iti == 3:
  print('bon')

if iti == 0 or iti == 1 or iti == 6 or iti == 8:
  print('pon')

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

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

Fixed code:
N = int(input())
NS = str(N)
if NS[len(NS) - 1] == "3":
  ans = "bon"
elif NS[len(NS) - 1] == "0":
  ans = "pon"
elif NS[len(NS) - 1] == "1":
  ans = "pon"
elif NS[len(NS) - 1] == "6":
  ans = "pon"
elif NS[len(NS) - 1] == "8":
  ans = "pon"
else:
  ans = "hon"
print(ans)
Buggy code:
import sys
input = sys.stdin.readline

N = (input().rstrip())
if N[-1] == 3:
  print('bon')
elif N[-1] == 0 or 1 or 6 or 8:
  print('pon')
else:
  print('hon')


Fixed code:
import sys
input = sys.stdin.readline

N = (input().rstrip())
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:
if __name__ == "__main__":
    # num = list(map(int, input().split())) 

    N = int(input())

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


Fixed code:
if __name__ == "__main__":
    # num = list(map(int, input().split())) 

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

Fixed code:
a = int(input()[-1])
pon = [0, 1, 6, 8]
if a == 3:
  print("bon")
elif a in pon:
  print("pon")
else:
  print("hon")
Buggy code:
n=int(input())
l=n%10
if l==0 or l==1 or l==6 or l==8:
  print("hon")
elif l==3:
  print('bon')
else:
  print("hon")

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

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

if m == 2 or m == 4 or m == 5 or m == 7 or m == 9:
  print("hon")
elif m = 3:
  print("bon")
else:
  print("pon")

Fixed code:
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 == 3:
  print("bon")
else:
  print("pon")
Buggy code:
N = int(input())
d = N%100
if d == 2 or 4 or 5 or 7 or 9 :
    print("hon")
elif d == 0 or 1 or 6 or 8:
    print("pon")
else:
    print("bon")

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

Fixed code:
N = input()
s = int(N) % 10
if s == 3:
    print('bon')
if s == 0:
    print('pon')
if s == 1:
    print('pon')
if s == 6:
    print('pon')
if s == 8:
    print('pon')

if s == 2:
    print('hon')
if s == 4:
    print('hon')
if s == 5:
    print('hon')
if s == 7:
    print('hon')
if s == 9:
    print('hon')
Buggy code:
def a():
    n = int(input()) % 10
    if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
        print('hon')
    elif n == 3:
        print('bon')
    else:
        print('pon')




def b():

def c():
    

# def d():


a()

Fixed code:
def a():
    n = int(input()) % 10
    if n == 2 or n == 4 or n == 5 or n == 7 or n == 9:
        print('hon')
    elif n == 3:
        print('bon')
    else:
        print('pon')




# def b():

# def c():
    

# def d():


a()
Buggy code:
s = 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")

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


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

remainder = n%10
if remainder in (2, 4, 5, 7, 9): print("hon")
elif remainder in (0,1,6,8): print("pon")
elif remainder in (3): 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())

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

Fixed code:
n = input()

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

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

Fixed code:
a = int(input()) % 10
if [2,4,5,7,9].count(a) == 1:
    print('hon')
elif [0,1,6,8].count(a) == 1:
    print('pon')
elif [3].count(a) == 1:
    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('bon')

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 in [2,4,5,7,9]: print(N+str(N)+'hon')
elif N in [0,1,6,8]: print(N+str(N)+'pon')
else: print(N+str(N)+'bon')

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

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

ans = n % 10

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

Fixed code:
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')
else:
  print('bon')