Problem p02957 (python)

Fixed submission:
#! /usr/bin/python
# -*- encoding: utf-8 -*-

import sys

if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]
    
    if inputA < 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()
    
    if inputB < 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

    if inputA == inputB:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

    if (inputA + inputB) % 2 == 0:
        sys.stdout.write(str(int((inputA + inputB) / 2)))
        sys.exit()
      
    sys.stdout.write("IMPOSSIBLE")
    sys.exit()

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]
    
    if inputA < 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()
    
    if inputB < 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

    if inputA == inputB:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

    if (inputA + inputB) % 2 == 0:
        sys.stdout.write(int((inputA + inputB) / 2))
        sys.exit()
      
    sys.stdout.write("IMPOSSIBLE")
    sys.exit()

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]
    
    if inputA < 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()
    
    if inputB < 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

    if inputA == inputB:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

    if (inputA + inputB) % 2 == 0:
        sys.stdout.write(int((inputA + inputB) / 2))
        sys.exit()
      
    else (inputA + inputB) % 2 != 0:
        sys.stdout.write("IMPOSSIBLE")
        sys.exit()

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]
    
    if inputA < 0:
      sys.stdout.write("IMPOSSIBLE")
        
    elif inputB < 0:
      sys.stdout.write("IMPOSSIBLE")
        
    elif inputA == inputB:
      sys.stdout.write("IMPOSSIBLE")

    elif (inputA + inputB) % 2 == 0:
      sys.stdout.write(int((inputA + inputB) / 2))
      
    elif (inputA + inputB) % 2 != 0:
      sys.stdout.write("IMPOSSIBLE")

    else:
      sys.stdout.write("IMPOSSIBLE")

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]
    
    if inputA < 0:
      print("IMPOSSIBLE")
        
    elif inputB < 0:
      print("IMPOSSIBLE")
        
    elif inputA == inputB:
      print("IMPOSSIBLE")

    elif (inputA + inputB) % 2 == 0:
      print(int((inputA + inputB) / 2))
      
    elif (inputA + inputB) % 2 != 0:
      print("IMPOSSIBLE")

    else:
      print("IMPOSSIBLE")

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]
    
    if inputA < 0:
      print("IMPOSSIBLE")
        
    elif inputB < 0:
      print("IMPOSSIBLE")
        
    if inputA == inputB:
      print("IMPOSSIBLE")

    elif (inputA + inputB) % 2 == 0:
      print(int((inputA + inputB) / 2))
      
    elif (inputA + inputB) % 2 != 0:
      print("IMPOSSIBLE")

    else:
      print("IMPOSSIBLE")

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


if __name__ == '__main__':
    input = list(map(int, input().split()))
    inputA = input[0]
    inputB = input[1]

    if inputA == inputB:
      print("IMPOSSIBLE")

    elif (inputA + inputB) % 2 == 0:
      print(int((inputA + inputB) / 2))
      
    elif (inputA + inputB) % 2 != 0:
      print("IMPOSSIBLE")

    else:
      print("IMPOSSIBLE")

Buggy submission (verdict: Runtime Error):
#! /usr/bin/python
# -*- encoding: utf-8 -*-


input = list(map(int, input().split()))
inputA = input[0]
inputB = input[1]

if inputA == inputB:
  print("IMPOSSIBLE")

elif (inputA + inputB) % 2 == 0:
  print(int((inputA + inputB) / 2))
  
elif (inputA + inputB) % 2 != 0:
  print("IMPOSSIBLE")

else:
  print("IMPOSSIBLE")