import std.stdio, std.string, std.conv;

void main() {
    int[] tmp = readln.split.to!(int[]);
    int a = tmp[0], b = tmp[1];
    int c = a + b;
    writeln(c % 2 == 0 ? (c / 2).to!string : "IMPOSSIBLE");
}