qyliang/CodeNanoFix huggingface dataset:
Buggy code:
import sys
from string import ascii_letters as ascii

def Ss():
  return sys.stdin.readline().rstrip()

def Is():
  return map(int, Ss())

def get_kyu(score):
  if score >= 400 and score <= 599:
    return 8
  if score >= 600 and score <= 799:
    return 7
  if score >= 800 and score <= 999:
    return 6
  if score >= 1000 and score <= 1199:
    return 5
  if score >= 1200 and score <= 1399:
    return 4
  if score >= 1400 and score <= 1599:
    return 3
  if score >= 1600 and score <= 1799:
    return 2
  if score >= 1800 and score <= 1999:
    return 1
  return None

score = int(Ss())
print(score)
print(get_kyu(score))

Fixed code:
import sys
from string import ascii_letters as ascii

def Ss():
  return sys.stdin.readline().rstrip()

def Is():
  return map(int, Ss())

def get_kyu(score):
  if score >= 400 and score <= 599:
    return 8
  if score >= 600 and score <= 799:
    return 7
  if score >= 800 and score <= 999:
    return 6
  if score >= 1000 and score <= 1199:
    return 5
  if score >= 1200 and score <= 1399:
    return 4
  if score >= 1400 and score <= 1599:
    return 3
  if score >= 1600 and score <= 1799:
    return 2
  if score >= 1800 and score <= 1999:
    return 1
  return None

score = int(Ss())
print(get_kyu(score))
Buggy code:
a = int(input())


if 400 <= a and 599 <= a:
    print(8)
elif 600 <= a and 799 <= a:
    print(7)

elif 800 <=  a and 999 <= a:
    print(6)
elif 1000 <= a and 1199 <= a:
    print(5)

elif 1200 <= a and 1399 <= a:
    print(4)
elif 1400 <= a and 1599 <= a:
    print(3)
elif 1600 <= a and 1799 <= a:
    print(2)

elif 1800 <= a and 1999 <= a:
    print(1)



Fixed code:
X = int(input())

if 400 <= X and X  <= 599:
    print(8)
elif 600 <= X and X <= 799:
    print(7)
elif 800 <= X and X <= 999:
    print(6)
elif 1000 <= X and X <= 1199:
    print(5)
elif 1200 <= X and X <= 1399:
    print(4)
elif 1400 <= X and X <= 1599:
    print(3)
elif 1600 <= X and X <= 1799:
    print(2)
elif 1800 <= X and X <= 1999:
    print(1)
Buggy code:
x=int(input())
if(x>=400 and x<=599):
  print("8-kyu")
if(x>=600 and x<=799):
  print("7-kyu")
if(x>=800 and x<=999):
  print("6-kyu")
if(x>=1000 and x<=1199):
  print("5-kyu")
if(x>=1200 and x<=1399):
  print("4-kyu")
if(x>=1400 and x<=1599):
  print("3-kyu")
if(x>=1600 and x<=1799):
  print("2-kyu")
if(x>=1800 and x<=1999):
  print("1-kyu")

Fixed code:
x=int(input())
if(x>=400 and x<=599):
  print("8")
if(x>=600 and x<=799):
  print("7")
if(x>=800 and x<=999):
  print("6")
if(x>=1000 and x<=1199):
  print("5")
if(x>=1200 and x<=1399):
  print("4")
if(x>=1400 and x<=1599):
  print("3")
if(x>=1600 and x<=1799):
  print("2")
if(x>=1800 and x<=1999):
  print("1")
Buggy code:
# coding: utf-8
x = int(input())

if x >= 400 and x <= 599:
    ans = 8
elif x >= 600 and x <= 799:
    ans = 7
elif x >= 800 and x <= 999:
    ans = 6
elif x >= 1000 and x <= 1999:
    ans = 5
elif x >= 1200 and x <= 1399:
    ans = 4
elif x >= 1400 and x <= 1599:
    ans = 3
elif x >= 1600 and x <= 1799:
    ans = 2
elif x >= 1800 and x <= 1999:
    ans = 1



print(ans)


Fixed code:
# coding: utf-8
x = int(input())

if x >= 400 and x <= 599:
    ans = 8
elif x >= 600 and x <= 799:
    ans = 7
elif x >= 800 and x <= 999:
    ans = 6
elif x >= 1000 and x <= 1199:
    ans = 5
elif x >= 1200 and x <= 1399:
    ans = 4
elif x >= 1400 and x <= 1599:
    ans = 3
elif x >= 1600 and x <= 1799:
    ans = 2
elif x >= 1800 and x <= 1999:
    ans = 1



print(ans)
Buggy code:
X = int(input(()))
n = 0
if 400 <= X  <= 599:
    print("8")
elif 600<= X <=799:
    print("7")
elif 800<= X <=999:
    print("6")
elif 1000<= X <=1199:
    print("5")
elif 1200<= X <=1399:
    print("4")
elif 1400<= X <=1599:
    print("3")
elif 1600<= X <=1799:
    print("2")
elif 1800<= X <= 1999:
    print("1")

Fixed code:
X = int(input())
if 400 <= X  <= 599:
    print("8")
elif 600<= X <=799:
    print("7")
elif 800<= X <=999:
    print("6")
elif 1000<= X <=1199:
    print("5")
elif 1200<= X <=1399:
    print("4")
elif 1400<= X <=1599:
    print("3")
elif 1600<= X <=1799:
    print("2")
elif 1800<= X <= 1999:
    print("1")
Buggy code:
def resolve():
	X = int(input())
	if 400<= x < 600:
		print(8); return
	elif 600<= x < 800:
		print(7); return
	elif 800<= x < 1000:
		print(6); return
	elif 1000<= x < 1200:
		print(5); return
	elif 1200<= x < 1400:
		print(4); return
	elif 1400<= x < 1600:
		print(3); return
	elif 1600<= x < 1800:
		print(2); return
	elif 1800<= x < 2000:
		print(1); return
resolve()

Fixed code:
def resolve():
	x = int(input())
	if 400<= x < 600:
		print(8); return
	elif 600<= x < 800:
		print(7); return
	elif 800<= x < 1000:
		print(6); return
	elif 1000<= x < 1200:
		print(5); return
	elif 1200<= x < 1400:
		print(4); return
	elif 1400<= x < 1600:
		print(3); return
	elif 1600<= x < 1800:
		print(2); return
	elif 1800<= x < 2000:
		print(1); return
resolve()
Buggy code:
score = [1800,1600,1400,1200,1000, 800, 600, 400]
ranks = [   1,   2,   3,   4,   5,   6,   7,   8]

x = int(input())
i = 0

while(x <= score[i]):
      print(x,score[i])
      i += 1

print(ranks[i])

Fixed code:
score = [1800,1600,1400,1200,1000, 800, 600, 400]
ranks = [   1,   2,   3,   4,   5,   6,   7,   8]

x = int(input())
i = 0

while(x < score[i]):
      i += 1

print(ranks[i])
Buggy code:
N=int(imput())
if N<600:
  print(8)
elif N<800:
  print(7)
elif N<1000:
  print(6)
elif N<1200:
  print(5)
elif N<1400:
  print(4)
elif N<1600:
  print(3)
elif N<1800:
  print(2)
else:
  print(1)

Fixed code:
N=int(input())
if N<600:
  print(8)
elif N<800:
  print(7)
elif N<1000:
  print(6)
elif N<1200:
  print(5)
elif N<1400:
  print(4)
elif N<1600:
  print(3)
elif N<1800:
  print(2)
else:
  print(1)
Buggy code:
x = int(input())

if x >= 400 and x <= 599:
    s = 8
elif x >= 600 and x <= 799:
    s = 7
elif x >= 800 and x <= 999:
    s = 6
elif x >= 1000 and x <= 1199:
    s = 5
elif x >= 1200 and x <= 1399:
    s = 4
elif x >= 1400 and x <= 1599:
    s = 3
elif x >= 1600 and x <= 1799:
    s = 2
else:
    s = 1

Fixed code:
x = int(input())

if x >= 400 and x <= 599:
    s = 8
elif x >= 600 and x <= 799:
    s = 7
elif x >= 800 and x <= 999:
    s = 6
elif x >= 1000 and x <= 1199:
    s = 5
elif x >= 1200 and x <= 1399:
    s = 4
elif x >= 1400 and x <= 1599:
    s = 3
elif x >= 1600 and x <= 1799:
    s = 2
else:
    s = 1

print(s)
Buggy code:
import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

N = int(input())
if 400 <= N and N <= 599:
    ans = 8
elif 600 <= N and N <= 799:
    ans = 7
elif 800 <= N and N <= 999:
    ans = 6
elif 1000 <= N and N <= 1199:
    ans = 6
elif 1200 <= N and N <= 1399:
    ans = 5
elif 1400 <= N and N <= 1599:
    ans = 4
elif 1600 <= N and N <= 1799:
    ans = 3
elif 1800 <= N and N <= 1999:
    ans = 2
elif 600 <= N and N <= 799:
    ans = 1

print(ans)



# ------------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)


Fixed code:
import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

N = int(input())
if 400 <= N and N <= 599:
    ans = 8
elif 600 <= N and N <= 799:
    ans = 7
elif 800 <= N and N <= 999:
    ans = 6
elif 1000 <= N and N <= 1199:
    ans = 5
elif 1200 <= N and N <= 1399:
    ans = 4
elif 1400 <= N and N <= 1599:
    ans = 3
elif 1600 <= N and N <= 1799:
    ans = 2
elif 1800 <= N and N <= 1999:
    ans = 1


print(ans)



# ------------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)
Buggy code:
x=input()
if x >=400 and 599<=x:
  print("8")
if x >=600 and 799<=x:
  print("7")
if x >=800 and 999<=x:
  print("6")
if x >=1000 and 1199<=x:
  print("5")
if x >=1200 and 1399<=x:
  print("4")
if x >=1400 and 1599<=x:
  print("3")
if x >=1600 and 1799<=x:
  print("2")
if x >=1800 
  print("1")
  

Fixed code:
x=int(input())
if x >=400 and 599>=x:
  print("8")
if x >=600 and 799>=x:
  print("7")
if x >=800 and 999>=x:
  print("6")
if x >=1000 and 1199>=x:
  print("5")
if x >=1200 and 1399>=x:
  print("4")
if x >=1400 and 1599>=x:
  print("3")
if x >=1600 and 1799>=x:
  print("2")
if x >=1800:
  print("1")
Buggy code:
w = 199

x = int(input())

if x >= 400 and x < 600:
    print(8)
elif x >= 600 and x < 800:
    print(7)
elif x >= 800 and x < 1000:
    print(6)
elif x >= 1000 and x < 1200:
    print(5)
elif x >= 1200 and x < 1400:
    print(4)
elif x >= 1400 and x < 1600:
    print(3)
elif x >= 1600 and x < 1800:
    print(1)
elif x >= 1800 and x < 2000:
    print(1)


Fixed code:
w = 199

x = int(input())

if x >= 400 and x < 600:
    print(8)
elif x >= 600 and x < 800:
    print(7)
elif x >= 800 and x < 1000:
    print(6)
elif x >= 1000 and x < 1200:
    print(5)
elif x >= 1200 and x < 1400:
    print(4)
elif x >= 1400 and x < 1600:
    print(3)
elif x >= 1600 and x < 1800:
    print(2)
elif x >= 1800 and x < 2000:
    print(1)
Buggy code:
X=int(input())

if X >= 400 amd x <=599:
    print("8")
elif X >= 600 amd x <=799:
    print("7")
elif X >= 800 amd x <=999:
    print("6")
elif X >= 1000 amd x <=1199:
    print("5")
elif X >= 1200 amd x <=1399:
    print("4")
elif X >= 1400 amd x <=1599:
    print("3")
elif X >= 1600 amd x <=1799:
    print("2")
elif X >= 1800 amd x <=1999:
    print("1")

Fixed code:
X=int(input())

if X >= 400 and X <=599:
    print("8")
elif X >= 600 and X <=799:
    print("7")
elif X >= 800 and X <=999:
    print("6")
elif X >= 1000 and X <=1199:
    print("5")
elif X >= 1200 and X <=1399:
    print("4")
elif X >= 1400 and X <=1599:
    print("3")
elif X >= 1600 and X <=1799:
    print("2")
elif X >= 1800 and X <=1999:
    print("1")
Buggy code:
def main():
    X = int(input())
    lst = [i * 200 + 400 for i in range(8)]
    lst.reverse()
    print(lst)
    for i, l in enumerate(lst):
        if X >= l:
            print(i+1)
            break

if __name__ == '__main__':
    main()

Fixed code:
def main():
    X = int(input())
    lst = [i * 200 + 400 for i in range(8)]
    lst.reverse()
    for i, l in enumerate(lst):
        if X >= l:
            print(i+1)
            break

if __name__ == '__main__':
    main()
Buggy code:
X = int(input())

if 400 <= X < 600:
    print(8)
elif 600 <= x < 800:
    print(7)
elif 800 <= x < 1000:
    print(6)
elif 1000 <= x < 1200:
    print(5)
elif 1200 <= x < 1400:
    print(4)
elif 1400 <= x < 1600:
    print(3)
elif 1600 <= x < 1800:
    print(2)
elif 1800 <= x < 2000:
    print(1)

Fixed code:
X = int(input())
if 400<=X<600:
    print(8)
elif 600<=X<800:
    print(7)
elif 800<=X<1000:
    print(6)
elif 1000<=X<1200:
    print(5)
elif 1200<=X<1400:
    print(4)
elif 1400<=X<1600:
    print(3)
elif 1600<=X<1800:
    print(2)
elif 1800<=X<2000:
    print(1)
Buggy code:
x = input()
if x =< 599:
    print("8")
elif x=< 799:
    print("7")
elif x=< 999:
    print("6")
elif x=< 1199:
    print("5")
elif x=< 1399:
    print("4")
elif x=< 1599:
    print("3")
elif x=< 1799:
    print("2")
else:
    print("1")

Fixed code:
x = int(input())
if x <= 599:
    print("8")
elif x <= 799:
    print("7")
elif x <= 999:
    print("6")
elif x <= 1199:
    print("5")
elif x <= 1399:
    print("4")
elif x <= 1599:
    print("3")
elif x <= 1799:
    print("2")
else:
    print("1")
Buggy code:
x=inport()
if 400<=x<=599:
  print(8)
elif 600<=x<=799:
  print(7)
elif 800<=x<=999:
  print(6)
elif 1000<=x<=1199:
  print(5)
elif 1200<=x<=1399:
  print(4)
elif 1400<=x<=1599:
  print(3)
elif 1600<=x<=1799:
  print(2)
else:
  print(1)

Fixed code:
x=int(input())
if 400<=x<=599:
  print(8)
elif 600<=x<=799:
  print(7)
elif 800<=x<=999:
  print(6)
elif 1000<=x<=1199:
  print(5)
elif 1200<=x<=1399:
  print(4)
elif 1400<=x<=1599:
  print(3)
elif 1600<=x<=1799:
  print(2)
else:
  print(1)
Buggy code:
n = int(input())

if n >= 1800: print(1)
elif n >= 1600: print(2)
elif n >= 1400: print(3)
elif n >= 1200: print(4)
elif n >= 1000: print(5)
elif n >= 800: print(6)
elif n >= 600: print(7)
elif n >= 400:: print(8)

Fixed code:
n = int(input())
 
if n >= 1800: print(1)
elif n >= 1600: print(2)
elif n >= 1400: print(3)
elif n >= 1200: print(4)
elif n >= 1000: print(5)
elif n >= 800: print(6)
elif n >= 600: print(7)
elif n >= 400: print(8)
Buggy code:
x = int(input())
if x<=400 and 599<=x:
  print(8)
if x<=600 and 799<=x:
  print(7)

if x<=800 and 999<=x:
  print(6)

if x<=1000 and 1199<=x:
  print(5)

if x<=1200 and 1399<=x:
  print(4)

if x<=1400 and 1599<=x:
  print(3)

if x<=1500 and 1799<=x:
  print(2)

if x<=1600 and 1999<=x:
  print(1)
exit()



Fixed code:
x = int(input())

if 400 <= x and x <= 599:
    print(8)
if 600 <= x and x <= 799:
    print(7)
if 800 <= x and x <= 999:
    print(6)
if 1000 <= x and x <= 1199:
    print(5)
if 1200 <= x and x <= 1399:
    print(4)
if 1400 <= x and x <= 1599:
    print(3)
if 1600 <= x and x <= 1799:
    print(2)
if 1800 <= x and x <= 1999:
    print(1)
Buggy code:
x = int(input())
print(f"{10 - x // 200}-kyu")


Fixed code:
x = int(input())
print(f"{10 - x // 200}")
Buggy code:
X = int(input())

if X in range(400,600):
  print(8)
elif X in range(600,800)
  print(7)
elif X in range(800,1000)
  print(6)
elif X in range(1000,1200)
  print(5)
elif X in range(1200,1400)
  print(4)
elif X in range(1400,1600)
  print(3)
elif X in range(1600,1800)
  print(2)
elif X in range(1800,1900)
  print(1)

Fixed code:
X = int(input())

if X in range(400,600):
  print(8)
elif X in range(600,800):
  print(7)
elif X in range(800,1000):
  print(6)
elif X in range(1000,1200):
  print(5)
elif X in range(1200,1400):
  print(4)
elif X in range(1400,1600):
  print(3)
elif X in range(1600,1800):
  print(2)
else:
  print(1)
Buggy code:
X = int(input())

lst = [ [400, 599, 8], [600, 799, 7], [800, 999, 6], [1000, 1199, 5], [1200, 1399, 4], [1400, 1599, 3], [1600, 1799, 2], [1800, 1999, 1] ]

def Kyu(X):
   
   for i in lst:
      if i[0] <= X <= i[1]:
         result = i[2]
         break
   
   print(result)

Fixed code:
X = int(input())

lst = [ [400, 599, 8], [600, 799, 7], [800, 999, 6], [1000, 1199, 5], [1200, 1399, 4], [1400, 1599, 3], [1600, 1799, 2], [1800, 1999, 1] ]

def Kyu(X):
   
   for i in lst:
      if i[0] <= X <= i[1]:
         result = i[2]
         break
   print(result)

Kyu(X)
Buggy code:
x = int(input())
if 400 =< x =< 599:
  print("8")
elif x =< 799:
  print("7")
elif x=< 999:
  print("6")
elif x=< 1199:
  print("5")
elif x=< 1399:
  print("4")
elif x=< 1599:
  print("3")
elif x=< 1799:
  print("2")
elif x=< 1999:
  print("1")

Fixed code:
x = int(input())

if x <= 599:print(8)
elif x <= 799:print(7)
elif x <= 999:print(6)
elif x <= 1199:print(5)
elif x <= 1399:print(4)
elif x <= 1599:print(3)
elif x <= 1799:print(2)
elif x <= 1999:print(1)
else: print("pya")
Buggy code:
def ranking(x):
    if(x>=400):
        if(x<600):
            return 8
        elif(x<800):
            return 7
        elif (x < 1000):
            return 6
        elif (x < 1200):
            return 5
        elif (x < 1400):
            return 4
        elif (x < 1600):
            return 3
        elif (x < 1800):
            return 2
        elif (x < 2000):
            return 1
x=input()
ranking(x)

Fixed code:
def ranking(x):
    if(x>=400):
        if(x<600):
            return 8
        elif(x<800):
            return 7
        elif (x < 1000):
            return 6
        elif (x < 1200):
            return 5
        elif (x < 1400):
            return 4
        elif (x < 1600):
            return 3
        elif (x < 1800):
            return 2
        elif (x < 2000):
            return 1
x=int(input())
print(ranking(x))
Buggy code:
x = int(input())
 
def score(x):
 
 if  400 <= x <= 599:
        print("8")
 elif 600 <= x <= 799:
        print("7")
 elif 800 <= x <= 999:
        print("6")
 elif 1000 <= x <= 1199:
        print("5")
 elif 1200 <= x <= 1399:
        print("4")
 elif 1400 <= x <= 1599:
        print("3")
 elif 1600 <= x <= 1799:
        print("2")
 elif 1800 <= x <= 1999:
        print("1")

print(score(x))



Fixed code:
x = int(input())

if 400 <= x <= 599:
  print(8)
elif 600 <= x <= 799:
  print(7)
elif 800 <= x <= 999:
  print(6)
elif 1000 <= x <= 1199:
  print(5)
elif 1200 <= x <= 1399:
  print(4)
elif 1400 <= x <= 1599:
  print(3)
elif 1600 <= x <= 1799:
  print(2)
elif 1800 <= x <= 1999:
  print(1)
Buggy code:
point = int(input())

if 400 <= point <=599 :
    print("8")
elif 600<= point <= 799 :
    print("7")
elif 800 <= point <= 999 :
    print("6")
elif 1000 <= point <= 1199 :
    print("5")
elif 1200 <= point <= 1399 :
    print("4")
elif 1400 <= point <= 1599 :
    print("3")
elif 1600 <= point <= 1799 :
    prin("2")
elif 1800 <= point <= 1999 :
    print("1")

Fixed code:
point = int(input())

if 400 <= point <=599 :
    print("8")
elif 600<= point <= 799 :
    print("7")
elif 800 <= point <= 999 :
    print("6")
elif 1000 <= point <= 1199 :
    print("5")
elif 1200 <= point <= 1399 :
    print("4")
elif 1400 <= point <= 1599 :
    print("3")
elif 1600 <= point <= 1799 :
    print("2")
elif 1800 <= point <= 1999 :
    print("1")
Buggy code:
x=int(input())
  if (x>=400 and x<=599):
    print("8")
  elif (x>=600 and x<=799):
    print("7")
  elif (x>=800 and x<=999):
    print("6")
  elif (x>=1000 and x<=1199):
    print("5")
  elif (x>=1200 and x<=1399):
    print("4")
  elif (x>=1400 and x<=1599):
    print("3")
  elif (x>=1600 and x<=1799):
    print("2")
  elif (x>=1800 and x<=1999):
    print("1")

Fixed code:
X =int( input())
if 400<= X and X<=599:
  print("8")
elif 600<= X and X<=799:
  print("7")
elif 800<= X and X<=999:
  print("6")
elif 1000<= X and X<=1199:
  print("5")
elif 1200<= X and X<=1399:
  print("4")
elif 1400<= X and X<=1599:
  print("3")
elif 1600<= X and X<=1799:
  print("2")
elif 1800<= X and X<=1999:
  print("1")
Buggy code:
x=int(integer)
  if 400<=x and x<=599:
    print("8")
  elif 600<=x and x<=799:
    print("7")
  elif 800<=x and x<=999:
    print("6")
  elif 1000<=x and x<=1199:
    print("5")
  elif 1200<=x and x<=1399:
    print("4")
  elif 1400<=x and x<=1599:
    print("3")
  elif 1600<=x and x<=1799:
    print("2")
  elif 1800<=x and x<=1999:
    print("1")


Fixed code:
x=int(input())
if (x>=400 and x<=599):
  print("8")
elif (x>=600 and x<=799):
  print("7")
elif (x>=800 and x<=999):
  print("6")
elif (x>=1000 and x<=1199):
  print("5")
elif (x>=1200 and x<=1399):
  print("4")
elif (x>=1400 and x<=1599):
  print("3")
elif (x>=1600 and x<=1799):
  print("2")
elif (x>=1800 and x<=1999):
  print("1")
Buggy code:
n = int(input()):
if n <= 599:
    print(8)
    exit()

if n <= 799:
    print(7)
    exit()

if n <= 999:
    print(6)
    exit()

if n <= 1199:
    print(5)
    exit()

if n <= 1399:
    print(4)
    exit()

if n <= 1599:
    print(3)
    exit()

if n <= 1799:
    print(2)
    exit()

if n <= 1999:
    print(1)
    exit()


Fixed code:
n = int(input())
if n <= 599:
    print(8)
    exit()

if n <= 799:
    print(7)
    exit()

if n <= 999:
    print(6)
    exit()

if n <= 1199:
    print(5)
    exit()

if n <= 1399:
    print(4)
    exit()

if n <= 1599:
    print(3)
    exit()

if n <= 1799:
    print(2)
    exit()

if n <= 1999:
    print(1)
    exit()
Buggy code:
x = int(input())
ans = 8 - (X - 400) // 200
print(ans)


Fixed code:
x = int(input())
ans = 8 - (x - 400) // 200
print(ans)
Buggy code:
x=int(input())

if 400<=x and x<=599:
    print(8)
elif:
    600<=x and x<=799:
    print(7)
elif:
    800<=x and x<=999:
    print(6)
elif:
    1000<=x and x<=1199:
    print(5)
elif:
    1200<=x and x<=1399:
    print(4)
elif:
    1400<=x and x<=1599:
    print(3)
elif:
    1600<=x and x<=1799:
    print(2)
elif:
    1800<=x and x<=1999:
    print(1)    

Fixed code:
x = int(input())
if 400<=x<=599:
  print(8)
if 600<=x<=799:
  print(7)
if 800<=x<=999:
  print(6)
if 1000<=x<=1199:
  print(5)
if 1200<=x<=1399:
  print(4)
if 1400<=x<=1599:
  print(3)
if 1600<=x<=1799:
  print(2)
if 1800<=x<=1999:
  print(1)
Buggy code:
M = int( input() )
if 599 >= M and M >= 400:
    print("8")
if 799 >= M and M >= 600:
    print("7")
if 999 >= M and M >= 800:
    print("6")
if 1199 >= M and M >= 100:
    print("5")
if 1399 >= M and M >= 1200:
    print("4")
if 1599 >= M and M >= 1400:
    print("3")
if 1799 >= M and M >= 1600:
    print("2")
if 1999 >= M and M >= 1800:
    print("1")

Fixed code:
M = int( input() )
if 599 >= M and M >= 400:
    print("8")
if 799 >= M and M >= 600:
    print("7")
if 999 >= M and M >= 800:
    print("6")
if 1199 >= M and M >= 1000:
    print("5")
if 1399 >= M and M >= 1200:
    print("4")
if 1599 >= M and M >= 1400:
    print("3")
if 1799 >= M and M >= 1600:
    print("2")
if 1999 >= M and M >= 1800:
    print("1")
Buggy code:
print([8,7,6,5,4,3,2,1][(input()-400) // 200 ])

Fixed code:
print([8,7,6,5,4,3,2,1][(int(input())-400) // 200 ])
Buggy code:
X=int(input('X='))
if 400<=X<=599:
    print(8)
elif 600<=X<=799:
    print(7)
elif 800<=X<=999:
    print(6)
elif 1000<=X<=1199:
    print(5)
elif 1200<=X<=1399:
    print(4)
elif 1400<=X<=1599:
    print(3)
elif 1600<=X<=1799:
    print(2)
elif 1800<=X<=1999:
    print(1)

Fixed code:
s = int(input())
if 400 <= s <= 599:
    print("8")
elif 600 <= s <= 799:
    print("7")
elif 800 <= s <= 999:
    print("6")
elif 1000 <= s <= 1199:
    print("5")
elif 1200 <= s <= 1399:
    print("4")
elif 1400 <= s <= 1599:
    print("3")
elif 1600 <= s <= 1799:
    print("2")
elif 1800 <= s <= 1999:
    print("1")
Buggy code:
ans = input()
if 400 <= ans <= 599:
  print(8)
elif 600 <= ans <= 799:
  print(7)
elif 800 <= ans <= 999:
  print(6)
elif 1000 <= ans <= 1199:
  print(5)
elif 1200 <= ans <= 1399:
  print(4)
elif 1400 <= ans <= 1599:
  print(3)
elif 1600 <= ans <= 1799:
  print(2)
elif 1800 <= ans <= 1999:
  print(1)

Fixed code:
X = int(input())

if 400<=X<=599:
    print(8)
elif 600<=X<=799:
    print(7)
elif 800<=X<=999:
    print(6)
elif 1000<=X<=1199:
    print(5)
elif 1200<=X<=1399:
    print(4)
elif 1400<=X<=1599:
    print(3)
elif 1600<=X<=1799:
    print(2)
elif 1800<=X<=1999:
    print(1)
Buggy code:
x = int(input())
 
if 400 < = x and x <= 599:
  print(8)
elif x <= 799:
  print(7)
elif x <= 999:
  print(6)
elif x <= 1199:
  print(5)
elif x <= 1399:
  print(4)
elif x <= 1599:
  print(3)
elif x <= 1799:
  print(2)
else:
  print(1)

Fixed code:
x = int(input())
 
if 400 <= x and x <= 599:
  print(8)
elif x <= 799:
  print(7)
elif x <= 999:
  print(6)
elif x <= 1199:
  print(5)
elif x <= 1399:
  print(4)
elif x <= 1599:
  print(3)
elif x <= 1799:
  print(2)
else:
  print(1)
Buggy code:
n = int(input())

if n <= 599:
    print(8)
elif n <= 799:
    print(7)
elif n <= 999:
    print(6)
elif n <= 1199:
    print(5)
elif n<= 1399:
    print(4)
elif n <= 1599:
    print(3)
elif n <= 1599:
    print(2)
else:
    print(1)

Fixed code:
n = int(input())

if n <= 599:
    print(8)
elif n <= 799:
    print(7)
elif n <= 999:
    print(6)
elif n <= 1199:
    print(5)
elif n<= 1399:
    print(4)
elif n <= 1599:
    print(3)
elif n <= 1799:
    print(2)
else:
    print(1)
Buggy code:
N = int(input())

if 400 <= N <= 599:
    print(8)
elif 600 <= N <= 799:
    print(7)
elif 800 <= N <= 999:
    print(6)
elif 1000 <= N <= 1199:
    print(5)
if 1200 <= N <= 1399:
    print(4)
elif 1400 <= N <= 1599:
    print(3)
elif 1600 <= N <= 1799:
    print(2)
else:
    print(1)










Fixed code:
N = int(input())

if 400 <= N <= 599:
    print(8)
elif 600 <= N <= 799:
    print(7)
elif 800 <= N <= 999:
    print(6)
elif 1000 <= N <= 1199:
    print(5)
elif 1200 <= N <= 1399:
    print(4)
elif 1400 <= N <= 1599:
    print(3)
elif 1600 <= N <= 1799:
    print(2)
else:
    print(1)
Buggy code:
x = int(input())

if x <= 400 and x <= 599:
  print(8)
elif x <= 600 and x <= 799:
  print(7)
elif x <= 800 and x <= 999:
  print(6)
elif x <= 1000 and x <= 1199:
  print(5)
elif x <= 1200 and x <= 1399:
  print(4)
elif x <= 1400 and x <= 1599:
  print(3)
elif x <= 1600 and x <= 1799:
  print(2)
elif x <= 1800 and x <= 1999:
  print(1)

Fixed code:
x = int(input())

if 400<=x<=599:
    print('8')
elif 600<=x<=799:
    print('7')
elif 800<=x<=999:
    print('6')
elif 1000<=x<=1199:
    print('5')
elif 1200<=x<=1399:
    print('4')
elif 1400<=x<=1599:
    print('3')
elif 1600<=x<=1799:
    print('2')
elif 1800<=x<=1999:
    print('1')