#include using namespace std; typedef unsigned long long ll; #define rep(i,n) for(i=0;i>Q; rep(q,Q){ int d,x; ll t; cin >>d >>x >>t; //cout <