#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. import sys # uncomment the two following lines if you want to read/write from files # sys.stdin = open('input.txt') # sys.stdout = open('output.txt', 'w') N, M, K, L, U, V = map(int, input().strip().split()) X = list(map(int, input().strip().split())) Y = list(map(int, input().strip().split())) Z = list(map(int, input().strip().split())) T = list(map(int, input().strip().split())) P = list(map(int, input().strip().split())) ans = 0 # INSERT YOUR CODE HERE print(ans) sys.stdout.close()