#include #define int long long using namespace std; int const N=1e6+5; int n,m,sum,cnt,t,ans; signed main() { // freopen("path.in","r",stdin); // freopen("path.out","r",stdout); ios::sync_with_stdio(0); cin.tie(0),cout.tie(0); cin>>t; while(t--) { cin>>n; vector a; while(n>=1) { // n/=2; if(n%2==1) { a.push_back('L'); n=(n-1)/2; } else { a.push_back('R'); n=(n-2)/2; } // n/=2; } for(int i=a.size()-1;i>=0;i--) { cout<