#include #include #include using namespace std; int main(){ int m; int n; string s; cin >> m; int a[4096]; for (int i = 0; i < m; i++){ cin >> a[i]; a[i] += 1; } for (int i = 0; i < m; i++){ while (1){ if (a[i] == 1){ cout << s << endl; s = ""; break; } n = a[i] % 2; if (n == 0){ s.insert(s.begin(), 'L'); } else{ s.insert(s.begin(), 'R'); } a[i] /= 2; } } return 0; }