qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a,b = map(int,input().split())

if (a+b)%2 == 0:
    print((a+b)/2)
else:
    print("IMPOSSIBLE")


Fixed code:
a,b = map(int, input().split())
x = 0

if (a + b) % 2 != 0:
    print("IMPOSSIBLE")
else:
    x = (a + b) // 2
    print(x)
Buggy code:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 28 15:26:59 2019

@author: sp8783
"""

a,b = map(int,input().split())

if (a+b)%2 == 0:
    print(int(a+b/2))
else:
    print("IMPOSSIBLE")

Fixed code:
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 28 15:26:59 2019

@author: sp8783
"""

a,b = map(int,input().split())

if (a+b)%2 == 0:
    print(int((a+b)/2))
else:
    print("IMPOSSIBLE")
Buggy code:
from sys import stdin
a,b = map(int,input().split())

c=(a+b)/2

if c%1.0!=0:
    print('IMPOSSIBLWE')
else:
    print(int(c))


Fixed code:
from sys import stdin
a,b = map(int,input().split())

c=(a+b)/2

if c%1.0!=0:
    print('IMPOSSIBLE')
else:
    print(int(c))
Buggy code:
A,B = map(int,input().split())

if A+B % 2 == 0:
    print(A+B)
else:
    print("IMPOSSIBLE")


Fixed code:
A,B = map(int,input().split())
if A == B:
    print(0)
else:
    if (A+B) % 2 == 0:
        print((A+B)//2)
    else:
        print("IMPOSSIBLE")
Buggy code:
a,b=map(int,imput().split())
if (a+b)%2==1:
  print("IMPOSSIBLE")
else:
  print((a+b)/2)

Fixed code:
a,b=map(int,input().split())
if (a+b)%2==1:
    print('IMPOSSIBLE')
else:
    print((a+b)//2)
Buggy code:
a,b=map(int,input().split())
if a%2==b%2:
  print((a+b)/2)
else:
  print("IMPOSSIBLE")


Fixed code:
a, b = map(int, input().split())

if a % 2 != b % 2:
  print('IMPOSSIBLE')
else:
  print((a + b) // 2)
Buggy code:
a,b=map(int,imput().split())
if a%2==b%2:
  print((a+b)/2)
else:
  print("IMPOSSIBLE")


Fixed code:
a,b=map(int,input().split())
if a%2==b%2:
  print (int((a+b)/2))
else:
  print("IMPOSSIBLE")
Buggy code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())

k = a+b
if k%2==0:
  return k/2
else:
  print('IMPOSSIBLE')
      


Fixed code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
 
k = a+b
if k%2==0:
  print(k//2)
else:
  print('IMPOSSIBLE')
Buggy code:
a,b = map(int, input().split())

if (a+b)%2 == 1:
  print('IMPOSSIBLE')
else:
  print((a+b)/2)

Fixed code:
a,b = map(int,input().split())
if (a+b) % 2 == 0:
  print((a+b)//2)
else:
  print("IMPOSSIBLE")
Buggy code:
a, b = map(int, input().split())

k = (a+b)/2

if abs(a-k) == abs(b-k):
    print(k)
else:
    print("IMPOSSIBLE")


Fixed code:
a, b = map(int, input().split())

k = (a+b)//2

if abs(a-k) == abs(b-k):
    print(k)
else:
    print("IMPOSSIBLE")
Buggy code:
a,b=map(int,input().split())

if (a+b)%2==1:
  print("IMPOSSIBLE")

else:
  print((a+b)/2)

Fixed code:
a,b=map(int,input().split())

if (a+b)%2==1:
  print("IMPOSSIBLE")

else:
  print((a+b)//2)
Buggy code:
a,b = map(int,input().split())

if (a-b)%2 == 0:
	print((a-b/2))
else:
	print('IMPOSSIBLE')

Fixed code:
a,b = map(int, input().split())
if abs(a-b) % 2 == 0:
  print((a+b)//2)
else:
  print("IMPOSSIBLE")
Buggy code:
A,B = map(int,input().split())
if A%2 == B%2:
    print(A+B/2)
else:
    print("IMPOSSIBLE")

Fixed code:
A, B = map(int, input().split())
if ((A+B) % 2) != 0:
    print("IMPOSSIBLE")
else:
    print(int((A+B)/2))
Buggy code:
a,b = int(input().split())
if(a % 2 != b % 2):
    print("IMPOSSIBLE")
else:
    print((a+b)/2)

Fixed code:
a,b = map(int,input().split())
if(a % 2 != b % 2):
    print("IMPOSSIBLE")
else:
    print(int((a+b)/2))
Buggy code:
a,b = map(int,input().split())
if (a+b)%2 == 0:
  print((a+b)%2)
else:
  print('IMPOSSIBLE')

Fixed code:
a,b=map(int,input().split())

if (a+b)%2 ==0:
    print((a+b)//2)
else:
    print("IMPOSSIBLE")
Buggy code:
a,b = map(int,input().split())
if (a+b)%2 == 0:
  print((a+b)//2)
else:
  print(IMPOSSIBLE)

Fixed code:
a,b = map(int,input().split())
if (a+b)%2 == 0:
  print((a+b)//2)
else:
  print("IMPOSSIBLE")
Buggy code:
A,B = [int(x) for x in input().split()]
if (A+B)%2 ==1:
  print("IMPOSSIBLE")
else:
  print(A+B//2)

Fixed code:
A, B = [int(x) for x in input().split()]

if (A + B) % 2 == 0:
    print((A + B) // 2)
else:
    print("IMPOSSIBLE")
Buggy code:
a, b = [int(i) for i in input().split()]

if((a + b) % 2 == 0):
    print((a + b) // 2)
else:
    print('impossible')

Fixed code:
a, b = [int(i) for i in input().split()]

if((a + b) % 2 == 0):
    print((a + b) // 2)
else:
    print('IMPOSSIBLE')
Buggy code:
a, b = map(int, input().split())
print(max(a, b) - abs(a, b) // 2 if not (a + b) % 2 else "IMPOSSIBLE")

Fixed code:
a, b = map(int, input().split())
print(max(a, b) - abs(a - b) // 2 if not (a + b) % 2 else "IMPOSSIBLE")
Buggy code:
a, b = [int(i) for i in input().split(" ")]
print("IMPOSSIBLE" if (a+b)%2 else (a+b)/2)

Fixed code:
a, b = [int(i) for i in input().split(" ")]
print("IMPOSSIBLE" if (a+b)%2 else (a+b)//2)
Buggy code:
a,b=map(int,input().split())
if (a+b)%2==0:
  print((a+b)/2)
  
else:
  print('IMPOSSIBLE')


Fixed code:
a, b = map(int, input().split())
print((a+b)// 2 if (a+b)% 2 == 0 else "IMPOSSIBLE")
Buggy code:
A,B = map(int,input().split())

if B%2!=A%2
  print("IMPOSSIBLE")
  
else:
  print((B-A)//2)

Fixed code:
A,B = map(int,input().split())

if (B%2!=A%2):
  print("IMPOSSIBLE")
  
else:
  print((B+A)//2)
Buggy code:
a,b=map(int,input().split())
if (a+b)%2==0:
    print(abs((a-b)/2)+min(a,b))
else:
    print("IMPOSSIBLE")

Fixed code:
a,b = map(int, input().split())
if  (b-a)%2==0:
    print(int((a+b)/2))
else:
    print("IMPOSSIBLE")
Buggy code:
A, B = input().split()
A = int(A)
B = int(B)

if (A+B)%2==0:
  print((A+B)/2)
else:
  print('IMPOSSIBLE')

Fixed code:
A,B = map(int,input().split())
if (A+B)%2==0:
    print((A+B)//2)
else:
    print('IMPOSSIBLE')
Buggy code:
a,b=map(int,input().split())
if (a+b)%2==0:
  print((a+b)/2)
  
else:
  print('impossible')


Fixed code:
a, b = map(int, input().split())


if (a + b) % 2 == 0:
    print((a + b) // 2)
else:
    print('IMPOSSIBLE')
Buggy code:
m, n = map(int, input.split())
total = m + n
if total % 2 == 0:
  print(total // 2)
else:
  print('IMPOSSIBLE')

Fixed code:
m, n = map(int, input().split())
total = m + n
if total % 2 == 0:
  print(total // 2)
else:
  print('IMPOSSIBLE')
Buggy code:
a,b=map(int, input().split())
if (a+b)%2==0:
  print((a+b)/2)
else:
  print('IMPOSSIBLE')

Fixed code:
a,b=map(int, input().split())
if (a+b)%2==0:
  print(int((a+b)//2))
else:
  print('IMPOSSIBLE')
Buggy code:
def function(data):
    data = data.split(" ")
    a = int(data[0])
    b = int(data[1])
    if (a + b) % 2 == 1:
        print("impossible")
    else:
        k = int((a + b) / 2)
        print(k)

if __name__ == '__main__':
  d = input()
  function(d)

Fixed code:
def function(data):
    data = data.split(" ")
    a = int(data[0])
    b = int(data[1])
    if (a + b) % 2 == 1:
        print("IMPOSSIBLE")
    else:
        k = int((a + b) / 2)
        print(k)

if __name__ == '__main__':
  d = input()
  function(d)
Buggy code:
a,b = map(int,input().split())
if a%2 != b%2:
    print('INPOSSIBLE')
    exit()
else:
    k = int((a+b)/2)
    print(k)

Fixed code:
a,b = map(int,input().split())
if a%2 != b%2:
    print('IMPOSSIBLE')
    exit()
else:
    k = int((a+b)/2)
    print(k)
Buggy code:
i = list(map(int, input().split()))
x=i[0]+i[1]
if x%2==0:
    print(x)
else:
    print("IMPOSSIBLE")

Fixed code:
i = list(map(int, input().split()))
x=i[0]+i[1]
if x%2==0:
    print(int(x/2))
else:
    print("IMPOSSIBLE")
Buggy code:
import sys
A, B = map(int, input().split())
tmp = 0

if (abs(A)-abs(B))%2 == 1:
  print("IMPOSSIBLE")
  sys.exit()

if A < B:
  tmp = A
  A = B
  B = tmp

if A > 0 and B > 0:
  K = (A+B)/2
elif A < 0 and B < 0:
  K = -(abs(A)+abs(B))/2
else:
  K = A-(abs(A)+abs(B))/2

print(K)

Fixed code:
import sys
A, B = map(int, input().split())
tmp = 0

if (abs(A)-abs(B))%2 == 1:
  print("IMPOSSIBLE")
  sys.exit()

if A < B:
  tmp = A
  A = B
  B = tmp

if A > 0 and B > 0:
  K = (A+B)/2
elif A < 0 and B < 0:
  K = -(abs(A)+abs(B))/2
else:
  K = A-(abs(A)+abs(B))/2

print(int(K))
Buggy code:
a, b = map(int, input().split())
k = (a + b) / 2

if abs(a - k) == abs(b - k):
    print(int(k))
else:
    print('IMPOSSIBLE')

Fixed code:
a, b = map(int, input().split())

if (a + b) % 2 == 0:
    k = (a + b) / 2
    if abs((a - b) / 2) == abs((b - a) / 2):
        print(int(k))
else:
    print('IMPOSSIBLE')
Buggy code:
input_ = input().split()
a = int(input_[0])
b = int(input_[1])

d = a + b
c = (a + b) / 2
if d % 2 == 0:
    if a != b:
        print(c)
else:
    print("IMPOSSIBLE")

Fixed code:
input_ = input().split()
a = int(input_[0])
b = int(input_[1])

d = a + b
c = round((a + b) / 2)
if d % 2 == 0:
    if a != b:
        print(c)
else:
    print("IMPOSSIBLE")
Buggy code:
A, B = map(int, input.split())

if A % 2 == B % 2:
  print((A+B)//2)
else:
  print("IMPOSSIBLE")

Fixed code:
A,B = map(int,input().split())
if (A+B)%2==0:
  print(int((A+B)/2))
else:
  print("IMPOSSIBLE")
Buggy code:
A,B = list(map(int,input().split()))
if (A+B)%2==1:
  print('IMPOSSIBLE')
else:
  print((A+B)/2)

Fixed code:
A,B = list(map(int,input().split()))
if (A+B)%2==1:
  print('IMPOSSIBLE')
else:
  print((A+B)//2)
Buggy code:
import sys
input = sys.stdin.readline

a,b = map(int, input().split())

k2 = a+b
if k2 % 2 != 0:
  print("IMPOSSIBLE")
else:
  print(k2/2)

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

a,b = map(int, input().split())

k2 = a+b
if k2 % 2 != 0:
    print("IMPOSSIBLE")
else:
    print(k2//2)
Buggy code:
a, b = int(input())
a, b = int(a), int(b)
if (a + b) % 2 == 0:
  	print((a + b) // 2)
else:
  	print("IMPOSSIBLE")

Fixed code:
a, b = input().split()
a, b = int(a), int(b)
if (a + b) % 2 == 0:
    print((a + b) // 2)
else:
    print("IMPOSSIBLE")
Buggy code:
A,B=map(int,input().split())

A,B=map(int,input().split())

if (A+B)%2==0:
    print((A+B)//2)
else:
    print('IMPOSSIBLE')

Fixed code:
A, B = map(int, input().split())
s = A + B
if s % 2 == 0:
  print(s // 2)
else:
  print("IMPOSSIBLE")
Buggy code:
A,B = map(int,input().split())
K = (A-B)
if (K%2==0):
  print(A+(K//2))
else:
  print("IMPOSSIBLE")

Fixed code:
A,B=map(int,input().split())
K = (A+B)/2
if K%1 == 0:
    print(int(K))
else:
    print('IMPOSSIBLE ')
Buggy code:
A,B = map(int,input().split())
if A%2 != B%2:
    print('IMPOSSIBLE')
else:
    print((A+B)/2)

Fixed code:
A,B = map(int,input().split())
if A%2 != B%2:
    print('IMPOSSIBLE')
else:
    print(int((A+B)/2))
Buggy code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B = list(map(int, sys.stdin.buffer.readline().split()))
    print((abs(A-B))//2 if (abs(A-B))%2 == 0 else 'IMPOSSIBLE')


if __name__ == '__main__':
    main()


Fixed code:
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B = list(map(int, sys.stdin.buffer.readline().split()))
    print((A+B)//2 if (A+B)%2 == 0 else 'IMPOSSIBLE')


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

K = (A+B)% 2
if K == 0:
    print((A+B)/2)
else:
    print('IMPSSIBLE')

Fixed code:
A,B = map(int,input().split())

K = (A+B)% 2
if K == 0:
    print(int((A+B)/2))
else:
    print('IMPOSSIBLE')
Buggy code:
a,b=map(int,input().splot())
if a%2==b%2:
  print((int)((a+b)/2))
else:
  print("IMPOSSIBLE")

Fixed code:
a,b=map(int,input().split())
if a%2==b%2:
  print((int)((a+b)/2))
else:
  print("IMPOSSIBLE")
Buggy code:
a,b = list(map(int,input().split()))
x = ( a + b )%2
y = (a + b)/2

if x ==0:
    print(y)
else:
    print('IMPOSSIBLE')

Fixed code:
a,b = list(map(int,input().split()))
x = ( a + b )%2
y = (a + b)//2

if x ==0:
    print(y)
else:
    print('IMPOSSIBLE')
Buggy code:
x = input().split()
A, B = [int(num) for num in x]
K = (A+B)/2
if int(K) = K:
  print(K)
else:
  print("IMPOSSIBLE")

Fixed code:
x = input().split()
A, B = [int(num) for num in x]
K = (A+B)/2
if int(K) == K:
  print(int(K))
else:
  print("IMPOSSIBLE")
Buggy code:
A , B = [int(i) for i in input().split()]

if (B-A)%2==0:
    print((B-A)/2)
else:
    print("IMPOSSIBLE")

Fixed code:
A , B = [int(i) for i in input().split()]

if B>A:    
    if (B-A)%2==0:
        print(int((B-A)/2+A))
    else:
        print("IMPOSSIBLE")
else:
    if (A-B)%2==0:
        print(int((A-B)/2+B))
    else:
        print("IMPOSSIBLE")
Buggy code:
a,b = map(int,input().split())

if (a + b) % 2 == 0:
  print((a + b) % 2)
else:
  print('IMPOSSIBLE')

Fixed code:
a,b = map(int,input().split())

if (a + b) % 2 == 0:
  print(int((a + b) // 2))
else:
  print("IMPOSSIBLE")
Buggy code:
n=input().split()
A=int(n[0])
B=int(n[1])
K=int((A+B)/2)
if abs(A-K)==abs(B-K):
    print(K)
else:
    print("imppsible")

Fixed code:
n=input().split()
A=int(n[0])
B=int(n[1])
K=int((A+B)/2)
if abs(A-K)==abs(B-K):
    print(K)
else:
    print("IMPOSSIBLE")
Buggy code:
A,B=map(int,input().split())
if (A+B)%2==0:
  print((A+B)/2)
else:
  print("IMPOSSIBLE")

Fixed code:
A,B=map(int,input().split())
if (A+B)%2==0:
  print((A+B)//2)
else:
  print("IMPOSSIBLE")
Buggy code:
a,b=map(int,input().split())

c=a-b

if c%2==0:
  if a<b:
    print(b-c//2)
  else:
    print(a+c//2)
else:
  print('IMPOSSIBLE')

Fixed code:
a, b = map(int, input().split())
c = a + b
if c % 2 == 0:
    print(int(c/2))
else:
    print('IMPOSSIBLE')
Buggy code:
A,B=(int(x) for x in input().split())
K=(A+B)/2
if abs(A-K) == abs(B-K):
    print(K)
else:
    print('IMPOSSIBLE')

Fixed code:
A,B=(int(x) for x in input().split())
K=(A+B)//2
if abs(A-K) == abs(B-K):
    print(K)
else:
    print('IMPOSSIBLE')
Buggy code:
a,b=map(int,input().split())

a=a-b
if a<0:
  a=-a
if a%2==0:
  print(a//2)
else:
  print('IMPOSSIBLE')

Fixed code:
a,b=map(int,input().split())

c=a-b

if c%2==0:
  if a<b:
    print(int(b+c//2))
  else:
    print(int(a-c//2))
else:
  print('IMPOSSIBLE')
Buggy code:
a, b = map(int, input().split())
if a+b % 2 == 0:
    print((a+b)/2)
else:
    print('IMPOSSIBLE')


Fixed code:
a,b= map(int,input().split())
if (a+b)%2==0:
  print((a+b)//2)
else:
  print('IMPOSSIBLE')
Buggy code:
A, B = map(int, input().split())
if (max(A, B) - min(A, B)) % 2 == 1:
    print("IMPOSSIBLE")
else:
    print(int((A + B)) / 2)

Fixed code:
A, B = map(int, input().split())
if (max(A, B) - min(A, B)) % 2 == 1:
    print("IMPOSSIBLE")
else:
    print(int((A + B) / 2))
Buggy code:
A, B = input().split()

if (int(A)+int(B)) % 2 ==0:
  print((int(A)+int(B))/2)
  
else:
  print('IMPOSSIBLE')
  

Fixed code:
A,B = map(int,input().split())
if A%2 == B%2:
    print((A+B)//2)
else:
    print("IMPOSSIBLE")
Buggy code:
a,b=map(int,input().split())
k=a+b
if k%2==0:print(k/2)
else:print('IMPOSSIBLE')

Fixed code:
a, b=map(int, input().split())

if ((a+b)%2 == 0):
    print(int((a+b)/2))
else:
    print("IMPOSSIBLE")
Buggy code:
A, B = map(int, input().split())
div, rem = divmod(abs(A - B), 2)
print("IMPOSSIBLE" if rem else abs(A - div))

Fixed code:
A, B = map(int, input().split())
div, rem = divmod(abs(A - B), 2)
print("IMPOSSIBLE" if rem else min(A, B) + div)
Buggy code:
a, b = map(int, input().split())
if (a+b) % 2 == 0:
    print((a+b)/2)
else:
    print('IMPOSSIBLE')

Fixed code:
a,b=map(int,input().split())
if (a+b)%2:
    print("IMPOSSIBLE")
else:
    print((a+b)//2)
Buggy code:
import numpy as np

A,B = map(int,input().split(" "))

if (A-B)%2 == 1:
    print('IMPOSSIBLE')
else:
    print((A+B)/2)

Fixed code:
import numpy as np

A,B = map(int,input().split(" "))

if (A-B)%2 == 1:
    print('IMPOSSIBLE')
else:
    print((A+B)//2)
Buggy code:
A, B = map(int, input().split())

if (A+B)/2 % 2 == 0:
  print((A+B)/2)
else:
  print("IMPOSSIBLE")

Fixed code:
A, B = map(int, input().split())

K = A + B
if K % 2 == 0:
    print(K // 2)
else:
    print('IMPOSSIBLE')
Buggy code:
a,b=map(int,input().split())
if (a+b)%2==0:
  print((a+b)/2)
else:
  print("IMPOSSIBLE")

Fixed code:
a, b = map(int, input().split())

if (a+b)%2 == 0 :
    print((a+b)//2)
else :
    print("IMPOSSIBLE")
Buggy code:
x=list(input().split())
A=int(x[0])
B=int(x[1])
k=(A+B)/2
if int(k)==k:
     print("%.0f"%k)
else:
     print("IMPOSSIBE")


Fixed code:
x=list(input().split())
A=int(x[0])
B=int(x[1])
k=(A+B)/2
if int(k)==k:
     print("%.0f"%k)
else:
     print("IMPOSSIBLE")
Buggy code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug  9 22:36:19 2019

@author: kohei
"""

N = input()

A = int(N.split()[0])
B = int(N.split()[1])

if A==B:
    print('IMPOSSIBLE')

else:
    if (A+B)%2==0:
        print((A+B)/2)
    
    else:
        print('IMPOSSIBLE')
    


Fixed code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug  9 22:36:19 2019

@author: kohei
"""

N = input()

A = int(N.split()[0])
B = int(N.split()[1])

if A==B:
    print('IMPOSSIBLE')

else:
    if (A+B)%2==0:
        print(int((A+B)/2))
    
    else:
        print('IMPOSSIBLE')
Buggy code:
A,B = map(int,input().split())
print((A+B)/2) if (A+B) % 2 == 0 else print('IMPOSSIBLE') 

Fixed code:
A, B = map(int, input().split())
print("IMPOSSIBLE" if (A + B) % 2 > 0 else (A + B)//2)
Buggy code:
a,b = map(int, input().split())

if ((a%2 == 1)and(b%2==1)):
    c = (a+b)/2
    print(c)

if ((a%2==0)and(b%2==0)):
    c =(a+b)/2
    print(c)
else:
    print("IMPOSSIBLE")

Fixed code:
a,b = map(int, input().split())

if ((a%2 == 1)and(b%2==1)):
    c = (a+b)/2
    print(int(c))

elif ((a%2==0)and(b%2==0)):
    c =(a+b)/2
    print(int(c))

else:
    print("IMPOSSIBLE")
Buggy code:
a,b=[int(i) for i in input().split()]
a,b=min(a,b),max(a,b)
c=b-a
if c%2==0:
  print(c//2)
else:
  print("IMPOSSIBLE")


Fixed code:
a,b=[int(i) for i in input().split()]
a,b=min(a,b),max(a,b)
c=b+a
if c%2==0:
  print(c//2)
else:
  print("IMPOSSIBLE")
Buggy code:
a,b = map(int,input().split())
if (a+b) % 2 ==0:
  print((a + b)/ 2)
else:
  print("IMPOSSIBLE")

Fixed code:
a,b=map(int,input().split())
if (b +a)%2 ==0:
  print(round((b+a)/2))
else:
  print('IMPOSSIBLE')
Buggy code:
#ABC135 A

A,B = map(int,input().split())
if (A+B)/2 % 1 == 0:
    print((A+B)/2)
else:
    print("IMPOSSIBLE")

Fixed code:
#ABC135 A

A,B = map(int,input().split())
if (A+B)/2 % 1 == 0:
    print(int((A+B)/2))
else:
    print("IMPOSSIBLE")
Buggy code:
A, B = map(int, input())
if (A - B) % 2 == 1:
  print("IMPOSSIBLE")
else:
  print((A+B)//2)

Fixed code:
A, B = map(int, input().split())
if (A - B) % 2 == 1:
  print("IMPOSSIBLE")
else:
  print((A+B)//2)
Buggy code:

def main():
    a, b = map(int, input().split())
    if ((a + b) // 2 ) % 2 == 0:
        print((a + b) // 2)
    else:
        print('IMPOSSIBLE')


if __name__ == "__main__":
    main()


Fixed code:

def main():
    a, b = map(int, input().split())
    if (a + b) % 2 == 0:
        print(int((a + b) / 2))
    else:
        print('IMPOSSIBLE')


if __name__ == "__main__":
    main()
Buggy code:
a,b = map(int, input().split())

if (a+b)%2 !=0:
    print('IMPOSSIBLE')
else:
    print(abs((a+b)/2))

Fixed code:
a, b = map(int, input().split())
if (a + b) % 2 != 0:
  print("IMPOSSIBLE")
else:
  print((a + b) // 2)
Buggy code:

A,B = map(int, input().split())

answer = 0
K= (A+B)/2

if A!= B and (A+B)%2 == 0 and (A-K)*(B-K)<0:
	print(int(K))
else:
  	print("Impossible")
	

Fixed code:

A,B = map(int, input().split())

answer = 0
K= (A+B)/2

if A!= B and (A+B)%2 == 0 and (A-K)*(B-K)<0:
	print(int(K))
else:
  	print("IMPOSSIBLE")
Buggy code:
A,B=map(int, input().split())
 
if (A+B)%2==0:
	print((A+B)/2)
else:
	print("IMPOSSIBLE")

Fixed code:
A, B = map(int, input().split())

C = A + B
if C % 2 == 0:
    print(C // 2)
else:
    print('IMPOSSIBLE')
Buggy code:
a,b = map(int,input().split())

if a>b:
    i = a-b
else:
    i = b-a

if i % 2 == 0:
    print(int(i/2))
else:
    print('IMPOSSIBLE')

Fixed code:
a,b = map(int,input().split())

if a>b:
    i = a-b
    big =a
else:
    i = b-a
    big = b

if i % 2 == 0:
    print( big - int(i/2))
else:
    print('IMPOSSIBLE')
Buggy code:
import math
a,b = map(int,(input().split()))
k = (a+b)/2
c = k if abs(a-k) == abs(b-k) else 'IMPOSSIBLE'
print(c)


Fixed code:
a,b = map(int,(input().split()))
k = int((a+b)/2)
c = k if abs(a-k) == abs(b-k) else 'IMPOSSIBLE'
print(c)
Buggy code:
a,b = map(int, input().split())

k = (a + b) / 2

if ((((a + b) % 2) == 0) and (a >= k) and (k >= b)) :
    print(k)
else:
    print("IMPOSSIBLE")

Fixed code:
a,b = map(int, input().split())

if(a < b):
  swap = b
  b = a
  a = swap

k = (a + b) // 2

if ((((a + b) % 2) == 0) and (a >= k) and (k >= b)) :
    print(k)
else:
    print("IMPOSSIBLE")
Buggy code:
a,b = map(int, input().split())

if ((a + b) % 2) == 0:
    print((a + b) / 2)
else:
    print("IMPOSSIBLE")

Fixed code:
a, b = map(int, input().split())

# k = (a + b) // 2
if (a + b) % 2 == 0:
    print((a + b) // 2)
else:
    print('IMPOSSIBLE')
Buggy code:
a, b = input().split()

if ((a + b) % 2) == 0:
    print((a + b) / 2)
else:
    print("IMPOSSIBLE")

Fixed code:
a,b=map(int,input().split())
if((a+b)%2==0):
	print((a+b)//2)
else:
	print("IMPOSSIBLE")
Buggy code:
a,b = map(int, input().slplit())
if (b-a)%2==0: print((a+b)//2)
else: print('IMPOSSIBLE')

Fixed code:
a,b = map(int, input().split())
if (b-a)%2==0: print((a+b)//2)
else: print('IMPOSSIBLE')
Buggy code:
import string
while True:
    try:
        a,b=map(int,input().split())
        if a!=b:
            if str((a+b)/2.0).isdecimal():
                print(int((a+b)/2))
            else:print("IMPOSSIBLE")
        else:print(int(a+b))
    except:break

Fixed code:
import string
while True:
    try:
        a,b=map(int,input().split())
        if a!=b:
            if ((a+b)%2)==0.0:
                print(int((a+b)/2))
            else:print("IMPOSSIBLE")
        else:print(int(a+b))
    except:break
Buggy code:
a,b = map(int,input().split())
if a&b:
  print('IMPOSSIBLE')
else:
  print((a+b)//2)

Fixed code:
a,b = map(int, input().split())

ans = (a + b) / 2

if ans == int(ans):
    print(int(ans))
else:
    print('IMPOSSIBLE')
Buggy code:
a,b=map(int,input().split())
print("IMPOSSIBLE" if (a+b%2)!=0 else (a+b)//2) 

Fixed code:
a,b = map(int,input().split())
x= a+b
if x % 2 != 0:
    print("IMPOSSIBLE")
else:
    print(int(x/2))
Buggy code:
def ABC_135_A():
    A,B = map(int, input().split())

    if (A+B)/%2 == 0:
        print(int((A+B)/2))
    else:
        print('IMPOSSIBLE')

if __name__ == '__main__':

    ABC_135_A()

Fixed code:
def ABC_135_A():
    A,B = map(int, input().split())

    if (A+B)%2 == 0:
        print(int((A+B)/2))
    else:
        print('IMPOSSIBLE')

if __name__ == '__main__':

    ABC_135_A()
Buggy code:
a,b=map(int,input().split())
s=(a+b)/2
if s%1==0:
    print(s)
else:
    print("IMPOSSIBLE")

Fixed code:
a,b=map(int,input().split())
c=(a+b)/2
if c%1==0:
    print(int(c))
else:
    print('IMPOSSIBLE')
Buggy code:
A,B=map(int,input().split())
if (A+B) % 2 = 0:
  K = (A+B)/2
else:
  K ="IMPOSSIBLE"
print(K)

Fixed code:
A, B = map(int, input().split())
K = (A+B)
if K%2==1:
    print("IMPOSSIBLE")
else:
    print(int(K/2))
Buggy code:
a,b=map(int.input().split())
if (a+b)%2==1:
    print("IMPOSSIBLE")
else:
    print((a+b)//2)

Fixed code:
a,b = map(int,input().split())
if (b-a) % 2 == 1:
    print("IMPOSSIBLE")
else:
    print(round((a+b)/2))
Buggy code:
a, b = map(int, input().split())
k = (a + b)//2
if abs(a - k) == abs(b - k): 
        print(k)
else:
        'IMPOSSIBLE'

Fixed code:
a, b = map(int, input().split())
k = (a + b)//2
if abs(a - k) == abs(b - k):
        print(k)
else:
        print('IMPOSSIBLE')
Buggy code:
a,b = map(int,input().split())
k = 0
if a > b:
  k = a - b
  if k % 2 != 0:
    print('IMPOSSIBLE')
  else:
    print((k/2)+b)
else:
  k = b - a
  if k % 2 != 0:
    print('IMPOSSIBLE')
  else:
    print((k/2)+a)

Fixed code:
a,b = map(int,input().split())
k = 0
if a > b:
  k = a - b
  if k % 2 != 0:
    print('IMPOSSIBLE')
  else:
    print(int((k/2)+b))
else:
  k = b - a
  if k % 2 != 0:
    print('IMPOSSIBLE')
  else:
    print(int((k/2)+a))
Buggy code:
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 29 01:57:09 2019

@author: matsui
"""


A,B=map(int,input().split())

if (A+B)&2 == 1: 
    print('IMPOSSIBLE')
else:
    K=(A+B)//2
    print(K)

Fixed code:
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 29 01:57:09 2019

@author: matsui
"""


A,B=map(int,input().split())

if (A+B)%2 == 1: 
    print('IMPOSSIBLE')
else:
    K=(A+B)//2
    print(K)