#include using namespace std; signed main(){ int m;cin>>m; while(m--){ int a;cin>>a; string res; while(a){ res+=(a&1?"L":"R"); a=(a-1)/2; } reverse(res.begin(),res.end()); cout<