I,R=input,range for i in R(1000): N=int(I()) if N<0:exit(0) for j in R(N):X=I() print("S")