// NOTE: it is recommended to use this even if you don't understand the following code. import java.util.*; import java.io.*; import java.lang.*; public class tractor2 { public static void main(String[] args) throws FileNotFoundException, IOException { Locale.setDefault(Locale.US); InputStream fin = System.in; OutputStream fout = System.out; // uncomment the two following lines if you want to read/write from files // fin = new FileInputStream("input.txt"); // fout = new FileOutputStream("output.txt"); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fout)); reader = new BufferedReader(new InputStreamReader(fin)); scn = new StringTokenizer(reader.readLine()); int N = Integer.parseInt(next()); int M = Integer.parseInt(next()); int K = Integer.parseInt(next()); int L = Integer.parseInt(next()); int U = Integer.parseInt(next()); int V = Integer.parseInt(next()); int[] X = new int[M]; for (int i = 0; i < M; ++i) X[i] = Integer.parseInt(next()); int[] Y = new int[M]; for (int i = 0; i < M; ++i) Y[i] = Integer.parseInt(next()); int[] Z = new int[M]; for (int i = 0; i < M; ++i) Z[i] = Integer.parseInt(next()); long[] T = new long[K]; for (int i = 0; i < K; ++i) T[i] = Long.parseLong(next()); int[] P = new int[L]; for (int i = 0; i < L; ++i) P[i] = Integer.parseInt(next()); long ans = 0; // INSERT YOUR CODE HERE writer.write(String.valueOf(ans)); writer.write('\n'); writer.flush(); } static String next() throws IOException { while (!scn.hasMoreTokens()) scn = new StringTokenizer(reader.readLine()); return scn.nextToken(); } static BufferedReader reader; static StringTokenizer scn; }