#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j = 0, k, l, a = 0, b, m, n, ck = 0, dk = 0;
  map<string, int> my;
  string arr;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> arr;
    my[arr]++;
  }
  for (i = 0; i < n; i++) {
    cin >> arr;
    if (my[arr] != 0) {
      my[arr]--;
    } else
      ck++;
  }
  cout << ck << endl;
}
