from collections import*;a,b=eval('Counter([input()for _ in[0]*int(input())]),'*2);print((max([0]+[v for v inlist((a-b).values())])))
from collections import Counter as c;n,*s=open(0);n=int(n);print((max([0]+[v for v inlist((c(s[:n])-c(s[n+1:])).values())])))
from collections import*;a,b=eval('Counter([input()for _ in[0]*int(input())]),'*2);print((max([0]+[v for v inlist((a-b).values())])))
from collections import Counter as c;n,*s=open(0);n=int(n);print((max([0]+[v for v inlist((c(s[:n])-c(s[n+1:])).values())])))
-from collections import*;a,b=eval('Counter([input()for _ in[0]*int(input())]),'*2);print((max([0]+[v for v inlist((a-b).values())]))) +from collections import Counter as c;n,*s=open(0);n=int(n);print((max([0]+[v for v inlist((c(s[:n])-c(s[n+1:])).values())])))