#include using namespace std; const int INF=1e9; using pii=pair; using tii=tuple; #define rep(i,n) for (int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() template void chmin(T &a,T b){ if(a>b){ a=b; } } template void chmax(T &a,T b){ if(a h,p,x; void input_cin(){ cin >> n; if(n==-1) exit(0); h.resize(n); p.resize(n); x.resize(n); rep(i,n) cin >> h[i] >> p[i] >> x[i]; } }Input; struct solver{ void solve(){ rep(i,1000){ Input.input_cin(); cout << "S" << endl; } } }Solver; int main(){ Solver.solve(); }