#include<iostream>
#include <cmath>
using namespace std;

int main() {

    int a,b;
    double k;
    
    cin>>a>>b;
    
    k=(a+b)/2.0;
    
    if(floor(k)==ceil(k)){
        
        cout<<k<<endl;
        

        cout<<"|"<<a<<"-"<<k<<"|="<<abs(a-k)<<" and "<<"|"<<b<<"-"<<k<<"|="<<abs(b-k)<<", so "<<k<<" satisfies the condition."<<endl;
    }
    else
    {
        cout<<"IMPOSSIBLE"<<endl;
        cout<<"No integer satisfies the condition."<<endl;
    }
        
    
    
    
    
    
    //|2−9|=7 and |16−9|=7, so 9 satisfies the condition.
    
    
    

    return 0;
}
