#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int cases = 1;
  while (cases--) {
    long long int n;
    cin >> n;
    vector<string> a(n), b(n);
    map<string, long long int> m1, m2;
    for (long long int i = 0; i < n; i++) {
      cin >> a[i];
      m1[a[i]]++;
    }
    for (long long int i = 0; i < n; i++) {
      cin >> b[i];
      m2[b[i]]++;
    }
    long long int c = n;
    for (auto i : m1) {
      c -= min(i.second, m2[i.first]);
    }
    cout << c << "\n";
  }
  return 0;
}
