import Control.Applicative
import Control.Monad
import Data.List

main = do
  [a, b] <- map (read::String -> Int) . words <$> getLine
  if (a + b) `mod` 2 == 0
    then print $ (a + b) `div` 2
    else putStrLn "IMPOSSIBLE"
  