#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k, a = 0, b;
  cin >> n;
  map<string, int> m1, m2;
  string s;
  for (i = 0; i < n; i++) {
    cin >> s;
    m1[s]++;
  }
  for (i = 0; i < n; i++) {
    cin >> s;
    m2[s]++;
  }
  map<string, int>::iterator it, it1;
  for (it1 = m2.begin(); it1 != m2.end(); it1++) {
    if (m1.find(it1->first) != m1.end()) {
      it = m1.find(it1->first);
      if (it1->second > it->second) a += it1->second - it->second;
    } else
      a += it1->second;
  }
  cout << a;
}
