#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 3;
long long MOD = 1e9 + 7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<string> a(n), b(n);
  map<string, int> ma, mb;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    ma[a[i]]++;
  }
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    mb[b[i]]++;
  }
  map<string, int>::iterator it = ma.begin();
  int ans = n;
  for (; it != ma.end(); it++) {
    ans -= min(it->second, mb[it->first]);
  }
  cout << ans << endl;
  return 0;
}
