Buggy python submission (verdict: Runtime Error):
s=[]
x,n=map(int,input().split())
if n==0:
  print(x)
  exit()
  
s=list(map(int,input().split()))
slist=sorted(s)
out=0
for i in range(0,1000):
  out=0
  for j in range(n):
    if slist[j]==x-i:
      out=1
  if out !=1:
   print(x-i)
   exit()
  out=0
  for k in range(n):
    if slist[k]==x+i:
      out=1
  if out !=1:
    print(x+i)
    exit()

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
s=[]
x,n=map(int,input().split())
s=list(map(int,input().split()))
slist=sorted(s)

if n==0:
  print(x)
  exit()
for i in range(0,101):
  for j in range(n):
    if slist[j]==x-i:
        flag=1
    if slist[j]==x+i:
        flag=2
            
  if flag==2:
    flag=0
  elif flag==0:
    print(x-i)
    exit()
  elif flag==1:
    print(x+i)
    exit()


Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
s=list(map(int,input().split())
for i in range(5):
  if s[i]==0:
     print(i+1)
     exit()
  else:
     pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
s=list(map(int,input().stlip())
for i in s:
  if i==0:
     print(i+1)
     exit()
  else:
     pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
for i in range(a):
  for j in range(b):
   if i+j==a and i*2+4*j==b:
    print("Yes")
    break
   else:
     print("No")

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
for i in range(a):
  for j in range(b):
   if i+j=a and i*2+4*j=b:
    print("Yes")
     break
   else:
     print("No")

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a=[]
a=int(input().split())
for i in range(4):
 if a[i]==0:
  print(i)
 else:
  pass



Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a=int(input().split())
for i in range(4):
 if a[i]==0:
  print(i)
 else:
  pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a=int(input().split())
for i in range(4):
 if a[i]==0:
  print(i)
 else
  pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a=[]
a=int(input().split())
for i in a:
 if a[i]==0:
   print(i+1)
 else:
  pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a=[]
a=map(int, input().split())
for i in a:
 if a[i]==0:
   print(i)
 else:
  pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass

Buggy python submission (verdict: Runtime Error):
a=[]
a=map(int, input().stlip())
for i in a:
 if a[i]==0:
   print(i)
 else:
  pass

Fixed submission:
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i+1))
 else:
   pass