#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  multiset<string> ms;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    ms.insert(s);
  }
  int c = 0;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    multiset<string>::iterator it;
    it = ms.find(s);
    if (it == ms.end())
      ++c;
    else
      ms.erase(it);
  }
  cout << c;
}
