var nums = require('fs').readFileSync('/dev/stdin','utf8').split(' '),
    a = parseInt(nums[0]),
    b = parseInt(nums[1]);

if ((a+b) % 2 !== 0)
  console.log('IMPOSSIBLE');
else
  console.log((a+b)/2);