function main(input) {
   input = input.trim();
  const a = input.split(" ").map(Number);
　const ans=a[0]+a[1];
  console.log(ans%2==0?ans/2:"IMPOSSIBLE");
  
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));