program abc135a
   implicit none
   integer :: a, b, k

   read(*,*) a, b

   if (mod(a+b,2)==0) then
      k = (a+b)/2
      write(*,*) k
   else
      write(*,*) "IMPOSSIBLE"
   end if

end program abc135a
