#include #include using namespace std; string func(int a) { string res; while (a>0) { res=string(1, a%2 ? 'L' : 'R')+res; a=(a-1)/2; } return res; } int main() { int m; cin>>m; while (m--) { int a; cin>>a; cout<