#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  map<string, long long> ma;
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    ma[s]++;
  }
  map<string, long long> mb;
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    mb[s]++;
  }
  long long ans = 0;
  for (auto it : ma) {
    if (mb[it.first] < it.second) {
      ans += it.second - mb[it.first];
    }
  }
  cout << ans << "\n";
  return 0;
}
