#include using namespace std; constexpr int width = 25; // フィールドの幅 constexpr int height = 60; // フィールドの高さ constexpr int max_turn = 1000; // ゲームの最大ターン数 int main(){ for(int turn = 1; turn <= max_turn; turn++) { // 入力の受け取り int n; cin >> n; if(n == -1) return 0; assert(n >= 0 && n <= width); int prev_x = -1; for(int i = 0; i < n; i++) { int h, p, x; cin >> h >> p >> x; assert(h >= 1 && p >= 0); assert(x >= 0 && x < width); assert(x > prev_x); prev_x = x; } cout << 'S' << endl; } return 0; }