#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  unordered_map<string, int> myMap;
  for (int i = 0; i < n; i++) {
    cin >> s;
    if (myMap.find(s) == myMap.end()) {
      myMap[s] = 1;
    } else {
      myMap[s] += 1;
    }
  }
  int count = 0;
  for (int i = 0; i < n; i++) {
    cin >> s;
    if (myMap.find(s) == myMap.end()) {
      count++;
    } else {
      if (myMap[s] != 0) {
        myMap[s] -= 1;
      } else {
        count++;
      }
    }
  }
  cout << count << endl;
  return 0;
}
