#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int m, t; cin >> m; for (int i = 0; i < m; i++) { cin >> t; string res; t += 1; while (t > 1) { if (t % 2) { res = 'R' + res; } else { res = 'L' + res; } t /= 2; } cout << res << '\n'; } return 0; }