# Arup Guha
# 1/3/2022
# Solution to 2021 UCF HS Online D2 Problem: Playing the Piano

nC = int(input(""))

# Go through all cases.
for loop in range(nC):

    # Nothing in the rules says you can't play all the notes with one hand =)
    notes = input("")
    print("L"*len(notes))
