#include using namespace std; #define MOD 1000000007 #define PB push_back #define INS insert #define MP make_pair #define LL long long int #define SS string #define VG vector< vector > #define VI vector #define VL vector int n,x1,x2,z1,z2,ans=0,t1,t2,ul,ur,ll,lr,r,l; vector ss; #define TRACE #ifdef TRACE #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template void __f(const char* name, Arg1&& arg1){ cerr << name << " : " << arg1 << std::endl; } template void __f(const char* names, Arg1&& arg1, Args&&... args){ const char* comma = strchr(names + 1, ','); cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...); } #else #define trace(...) #endif LL XpowerY(LL x, LL y, LL m){ LL ans=1; x=x%m; while(y>0){ if(y%2==1) ans=(ans*x)%m; x=((x%m)*(x%m))%m; y=y>>1; } return ans%m; } int func(){ for(int i=0;it1?ss.PB("UR"):ss.PB("UL"); if(t2>t1) {t1++;ur++;} else {t1--;ul++;} } if(abs(t1-t2)%2) {cout<<"Impossible\n";ss.clear();return 0;} else{ for(int i=0;it1)?ss.PB("R"):ss.PB("L"); if(t2>t1) r++; else l++; } } return 0; } int main(){int fl=0; cin >> n >> x1 >> x2 >> z1 >> z2;t1=x2,t2=z2; if(abs(z1-x1)%2) {cout << "Impossible\n";return 0;} else{ if(x1