No Idea!

  • + 1 comment
    input()  # Is this needed?
    happy = list(map(int, input().split()))
    a = set(map(int, input().split()))
    b = set(map(int, input().split()))
    
    happiness = [h for h in happy if h in a]
    sadness = [s for s in happy if s in b]
    print(len(happiness) - len(sadness))