main = getLine >>= \_s ->
  case map (read :: String -> Int) . words $ _s of
      [a, b] | even (a + b) -> return.show $ (a + b) `div` 2
             | otherwise  -> return "IMPOSSIBLE"
    >>= putStrLn
