M=int(input()) for m in range(M): A=int(input())+1 le=A.bit_length() print(*["R" if A&1<