#include<bits/stdc++.h>
using namespace std;
int main(){
    unsigned long long int a,b;
    cin >> a >> b;
    unsigned long long int sum = a+b;
    if(sum%2!=0)
        cout << "IMPOSSIBLE" << endl;
    else
        cout << sum/2 << endl;

    return 0;
}
