No Idea!

  • + 0 comments
    dims = list(map(int, input().split()))
    
    whole = list(map(int, input().split()))
    
    a = set(map(int, input().split()))
    
    b = set(map(int, input().split()))
    
    happy = 0
    
    for i in whole:
        if i in a:
            happy +=1
        if i in b:
            happy -=1
    
    print(happy)