_, s, _, t = [[*map(int, o.split())] for o in open(0)]
print(sum(i in s for i in t)) [*map(int, o.split())] for o in open(0) for o in open(0) o open(0) open 0 for o in open(0) [*map(int, o.split())] *map(int, o.split()) map(int, o.split()) map int o.split() o.split o split _, s, _, t = [[*map(int, o.split())] for o in open(0)] _ [[*map(int, o.split())] for o in open(0)] s _ t print(sum(i in s for i in t)) print sum(i in s for i in t) sum i in s i s _, s, _, t = [[*map(int, o.split())] for o in open(0)] [[*map(int, o.split())] for o in open(0)] _ _, t = [[*map(int, o.split())] for o in open(0)] [[*map(int, o.split())] for o in open(0)] _ s, _, t = [[*map(int, o.split())] for o in open(0)] [[*map(int, o.split())] for o in open(0)] s t = [[*map(int, o.split())] for o in open(0)] [[*map(int, o.split())] for o in open(0)] t
_, s, _, t = [[*map(int, o.split())] for o in open(0)]
print(sum(i in s for i in t))
