program A136
    implicit none
    integer A,B
    read *,A,B

    if(A==B) then
        print '(i0)',0
    else if(mod(A+B,2)==1) then
        print '(A)',"IMPOSSIBLE"
    else
        print '(i0)',(A+B)/2
    end if
    
end program A136