program main
    implicit none
    integer n
    integer a,b
    integer alice, bob
    integer, allocatable :: card(:)

    read*, a, b
    if (mod(a+b, 2) == 0)then
        print'(i0)', (a+b) /2
    else
        print'(a)', 'IMPOSSIBLE'
    endif

  
end program main