#include using namespace std; inline int read(){ int x=0; char c=getchar(); while(c<'0' || c>'9'){ c=getchar(); } while(c>='0' && c<='9'){ x=(x<<1)+(x<<3)+(c^48); c=getchar(); } return x; } int T; void solve(){ int n; n=read(); n++; string s; while(n>1){ if(n&1){ s+="R"; }else{ s+="L"; } n>>=1; } reverse(s.begin(),s.end()); cout<