#include #include int main() { int n,m=0,l=0,k=0,f=0,p=0; scanf("%i", &n); int is,js,ie,je; scanf("%i %i %i %i", &is, &js, &ie, &je); m=js-je; l=is-ie; int x,y; if(m<0) x=je-js; else x=m; if(l<0) y=ie-is; else y=l; k=y/2; f=x/2; if(y>=2&&x>=1){ if(y%2==0&&x%k==0){ printf("%d\n",k); while(k--){ if(m>0&&l>0) printf("UL "); else if(m<0&&l>0) printf("UR "); else if(l<0&&m>0) printf("LL "); else if(l<0&&m<0) printf("LR "); } } else if(y%2==0&&(x-k)%2==0){ int z=(x-k)/2; printf("%d\n",z+k); if(l>0){ while(k--){ if(m>0) printf("UL "); else if(m<0) printf("UR "); } while(z--){ if(m>0) printf("L "); else if(m<0) printf("R "); } } else if(l<0&&m<0){ while(z--){ printf("R "); } while(k--){ printf("LR "); } } else if(l<0&&m>0){ while(k--){ printf("LL "); } while(z--){ printf("L "); } } } else printf("Impossible"); } if(y==0&&x>=2){ printf("%d\n",f); if(x%2==0){ while(f--) if(m>0) printf("L "); else if(m<0) printf("R "); } else printf("Impossible"); } else if(x==0&&y>3){ if(y%4==0){ printf("%d\n",k); p=y/4; if(m==0&&l>0){ while(p--){ printf("UL "); printf("UR "); } } else if(m==0&&l<0){ while(p--){ printf("LR "); printf("LL "); } } } else printf("Impossible"); } return 0; }