{ NOTE: it is recommended to use this even if you don't understand the following code. } { constraints } const MAXN = 100; { input data } var N, i : longint; A, B, C, D : array[0..MAXN-1] of longint; W1, W2, X : longint; begin { uncomment the following lines if you want to read/write from files assign(input, 'input.txt'); reset(input); assign(output, 'output.txt'); rewrite(output); } { read N in the first line } readln(N); { read the four dice of each round } for i:=0 to N-1 do readln(A[i], B[i], C[i], D[i]); W1 := 0; W2 := 0; X := 0; { insert your code here } { write the three results in a single line } writeln(W1, ' ', W2, ' ', X); end.