#include #define int long long const int inf=8938103643641919514ll; const int mod=1000000007; const int dd[]={0,-1,0,1,0}; using namespace std; int a,b,c,d; char p[100000][3]; struct A{ char c[3]; bool operator<(const A &x)const{ if(c[0]x.c[0]) return false; else return c[1] se; vector ve; int nnn; void saiki(int u){ if(nnn>6000000){ cout<<"Impossible"<>a; for(i=0;i>p[i]; saiki(0); cout<<"Impossible"<