#include #include #include using namespace std; int main() { int m; cin >> m; while (m--) { int a; cin >> a; a++; while (a != 1) { cout << "LR"[a % 2]; a >>= 1; } cout << endl; } return 0; }