{ NOTE: it is recommended to use this even if you don't understand the following code } const MAXM = 200000; MAXK = 100000; MAXL = 200000; var K, L, M, N, U, V, i : LongInt; X, Y, Z : Array[0..MAXM-1] of LongInt; T : Array[0..MAXK-1] of Int64; P : Array[0..MAXL-1] of LongInt; ans : Int64; begin { uncomment the two following lines if you want to read/write from files assign(input, 'input.txt'); reset(input); assign(output, 'output.txt'); rewrite(output); } ReadLn(N, M, K, L, U, V); for i:=0 to M-1 do Read(X[i]); ReadLn(); for i:=0 to M-1 do Read(Y[i]); ReadLn(); for i:=0 to M-1 do Read(Z[i]); ReadLn(); for i:=0 to K-1 do Read(T[i]); ReadLn(); for i:=0 to L-1 do Read(P[i]); ReadLn(); ans := 0; { INSERT YOUR CODE HERE } WriteLn(ans); end.