#include using namespace std; int main(){ int m;cin>>m; while(m--){ int n;cin>>n; stacks; while(n){ if(n&1)s.push('L'); else s.push('R'); n=(n-1)/2; }while(!s.empty()){ cout<