#include <bits/stdc++.h>
using namespace std;
map<string, int> mpa, mpb;
int main() {
  ios::sync_with_stdio(false);
  int n;
  while (cin >> n) {
    mpa.clear();
    mpb.clear();
    string s;
    for (int i = 1; i <= n; i++) {
      cin >> s;
      mpa[s]++;
    }
    for (int i = 1; i <= n; i++) {
      cin >> s;
      mpb[s]++;
    }
    int res = 0;
    for (map<string, int>::iterator it = mpa.begin(); it != mpa.end(); it++) {
      res += max(it->second - mpb[it->first], 0);
    }
    cout << res << endl;
  }
  return 0;
}
