#include #include #include using namespace std; int main(){ int n;cin>>n; vector a; for(int i = 0; n > i; i++){ int z;cin>>z;z++; while(z/2){ if(z%2)a.push_back('R'); else a.push_back('L'); } reverse(a.begin(),a.end()); for(int i = 0; a.size() > i; i++){ cout << a[i]; } cout << endl; a.clear(); } }