#include "testlib.h" #include using namespace std; using ll = long long; using pll = pair; #define all(a) begin(a), end(a) #define space inf.readChar(' ') #define endl inf.readChar('\n') #define eof inf.readEof() const ll MIN_N = 1; const ll MAX_N = 5000; const ll MIN_W = 1; const ll MAX_W = 5000; const ll MIN_D = 1; const ll MAX_D = 5000; const ll MIN_w = 1; const ll MAX_w = 5000; const ll MIN_v = 1; const ll MAX_v = 5000; const ll MIN_t = 0; const ll MAX_t = 1; int main() { registerValidation(); ll N = inf.readLong(MIN_N, MAX_N); inf.readSpace(); inf.readLong(MIN_W, MAX_W); inf.readSpace(); inf.readLong(MIN_D, MAX_D); inf.readEoln(); for(int i=0;i