n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) d = list(map(int, input().split())) d = sorted(d, reverse = True) ia = 0 ib = 0 i = 0 ans = 0 for _ in range(n): diff_a = a[ia] - a[ia + 1] diff_b = b[ib] - b[ib + 1] if diff_a < diff_b: ia += 1 else: ib += 1 sum_ = a[ia] + b[ib] while i < n: if d[i] <= sum_: ans += 1 i += 1 break else: i += 1 print(ans)