{ NOTE: it is recommended to use this even if you don't understand the following code. } { constraints } const MAXN = 100000; { input data } var N, M, i : longint; V, A, B, X, Y : array[0..MAXN-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); for i:=0 to N-1 do read(V[i]); readln(); for i:=0 to N-2 do readln(A[i], B[i]); readln(Q); for i:=0 to Q-1 do readln(X[i], Y[i]) { insert your code here } { write numbers 42 and 12 in a single line } writeln(42, 12); end.