No Idea!

  • + 0 comments
    f_line = input().split()
    n = f_line[0]
    m = f_line[1]
    integers = input().split()
    A = set(input().split())
    B = set(input().split())
    
    h = 0
    for i in integers:
        if i in A:
            h += 1
        elif i in B:
            h -= 1
    print(h)