#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
// 浮点精度容错(信奥标准值)
const double EPS = 1e-9;
const double END_POS = 1000.0;
struct Event {
char type; // 'T' 或 'D'
int val; // T的S值 / D的X值
bool processed; // 是否已触发
};
int main() {
int N;
cin >> N;
}