#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000001 vector A,B; int N; vector> ans; void Right(int ind){ A[ind]++; if(ind!=N-1&&A[ind]==A[ind+1]){ Right(ind+1); } ans.emplace_back(ind+1,'R'); } void Left(int ind){ A[ind]--; if(ind!=0&&A[ind]==A[ind-1]){ Right(ind-1); } ans.emplace_back(ind+1,'L'); } int main(){ cin>>N; A.resize(N); B.resize(N); rep(i,N){ scanf("%d",&A[i]); } rep(i,N){ scanf("%d",&B[i]); } rep(i,N){ while(A[i]B[i]){ Left(i); } } cout<