#!/Users/fritjof/anaconda3/bin/python3
s, t, n = list(map(int, input().split()))
ds = [int(_) for _ in input.split()]
bs = [int(_) for _ in input.split()]
cs = [int(_) for _ in input.split()]

t_time = 0


