#include <bits/stdc++.h>
using namespace std;
vector<string> vec;
int main() {
  int t;
  while (cin >> t) {
    int totalNum = t;
    string str;
    for (int i = 0; i < t; i++) {
      cin >> str;
      vec.push_back(str);
    }
    for (int i = 0; i < t; i++) {
      cin >> str;
      for (int j = 0; j < vec.size(); j++) {
        if (vec[j] == str) {
          totalNum--;
          vec.erase(vec.begin() + j);
          break;
        }
      }
    }
    cout << totalNum << endl;
    vec.clear();
  }
  return 0;
}
