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