#include using namespace std; int main(){ int T; cin>>T; while(T--){ int A; cin>>A; string res; while(A){ if(A&1)res+="L"; else res+="R"; A--; A/=2; } reverse(res.begin(),res.end()); cout<