I,R,P=input,range,print def J(): return map(int,I().split()) for i in R(1000): N=int(I()) if N<0:exit(0) for i in R(N):X,Y,Z=J() P("S")