#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  multiset<string> a, b;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    a.insert(s);
  }
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    b.insert(s);
  }
  int count = 0;
  for (auto p : b) {
    for (auto q : a) {
      if (p == q) {
        count++;
        a.erase(a.find(q));
        break;
      }
    }
  }
  cout << n - count;
}
