'use strict';(function(input){
  input=input.trim().split(/\s+/).map(x=>x-0);
  console.log(((input[0]+input[1])%2===0)?(input[0]+input[1])/2:'IMPOSSIBLE');
})(require('fs').readFileSync('/dev/stdin','utf8'));