#include using namespace std; #define ll long long ll n,a,b,c,d; ll mem[201][210]; bool vis[201][201]; bool check(ll x,ll y) { if(x>=0 && x=0 && y>n>>a>>b>>c>>d; ll e=fun(a,b); if(e>INT_MAX) { cout<<"Impossible\n"; return 0; } else cout<q; ll x=a,y=b; while(f>=0) { if(check(x-2,y-1) && mem[x-2][y-1]==f) { q.push("UL"); x-=2; y-=1; } else if(check(x-2,y+1) && mem[x-2][y+1]==f) { q.push("UR"); x-=2; y+=1; } else if(check(x,y+2) && mem[x][y+2]==f) { q.push("R"); y+=2; } else if(check(x+2,y+1) && mem[x+2][y+1]==f) { q.push("LR"); x+=2; y+=1; } else if(check(x+2,y-1) && mem[x+2][y-1]==f) { q.push("LL"); x+=2; y-=1; } else { q.push("L"); y-=2; } // cout<