#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string r;
  multiset<string> set1;
  multiset<string>::iterator it;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> r;
    set1.insert(r);
  }
  cout << '\n';
  for (int j = 0; j < n; j++) {
    cin >> r;
    if (set1.find(r) != set1.end()) {
      set1.erase(set1.find(r));
    }
  }
  cout << set1.size();
  return 0;
}
