#include <bits/stdc++.h>
using namespace std;
long long n;
int main() {
  long long n, ans = 0;
  string c;
  cin >> n;
  set<string> ss;
  std::set<string>::iterator it;
  map<string, int> m1;
  map<string, int> m2;
  for (int i = 0; i < n; i++) {
    cin >> c;
    m1[c]++;
  }
  for (int i = 0; i < n; i++) {
    cin >> c;
    ss.insert(c);
    m2[c]++;
  }
  for (it = ss.begin(); it != ss.end(); ++it) {
    if (m2[*it] > m1[*it]) {
      ans += m2[*it] - m1[*it];
    }
  }
  cout << ans;
}
