import Control.Applicative
import Control.Monad
 

main :: IO ()
main = do
    [a, b] <- map read . words <$> getLine
    putStrLn $ solve a b

solve :: Int -> Int -> String  
solve a b = if mod (a + b) 2 == 0 then show (div (a + b) 2) else "IMPOSSIBLE"   