• + 2 comments
    #include<bits/stdc++.h>
    using namespace std;
    typedef unsigned long long ll;
    int main()
    {
        ll t;
        cin >> t;
        for(int i = 0;i<t;i++)
        {
            ll N,count = 0;
            cin >> N;
            N--;
            while(N!=0)
            {
                if(N%2)count++;
                N>>=1;
            }
            if(count%2)cout << "Louise" << endl;
            else cout << "Richard" << endl;
        }
        return 0;
    }