Set .union() Operation

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    n = input()
    eng = set(map(int,input().split()))
    b = input()
    fren = set(map(int,input().split()))
    print (len(eng | fren))