#include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a==b&&b==c) cout<<"Impossible"; else { if(a==c) cout<<0; } return 0; }