#define Z(S,N)write(1,S"\n",2),scanf("%d",&N); N;main(x){for(gets(&N);;){for(x=29,Z("L",N)--x;){for(Z("R",N)!N;)Z("L",N)if(N>50){for(x=50;--x;)puts("F");exit(0);}Z("F",N)}for(;N--;)Z("F",x)}}