let harmony a b =
  if (a + b) mod 2 = 0 then string_of_int ((a + b) / 2) else "IMPOSSIBLE"

let a, b = Scanf.sscanf (read_line ()) "%d %d" (fun a b -> (a, b))
let () = Printf.printf "%s\n" (harmony a b)