#include using namespace std; int main(){ int A,B,C,D; cin>>A>>B>>C>>D; int P=0; if(D>9){ cout<<"Impossible"<