No Idea!

  • + 0 comments
    n, m = list(map(int, input().split()))
    ints = list(map(int, input().split()))
    
    a = set(list(map(int, input().split())))
    b = set(list(map(int, input().split())))
    
    h = 0
    for i in ints:
        if i in a: 
            h += 1
        elif i in b:
            h -= 1
    
    print(h)