{ NOTE: it is recommended to use this even if you don't understand the following code. } { constraints } const MAXP = 150000; { input data } var N, P, i : longint; X, Y, R : array[0..MAXP-1] of 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); } readln(N, P); for i:=0 to P-1 do readln(X[i], Y[i], R[i]); { insert your code here } writeln(42); { print result } end.