#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    string pre[n];
    string cur[n];
    for (int i = 0; i < n; i++) cin >> pre[i];
    for (int i = 0; i < n; i++) cin >> cur[i];
    int req = n;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        if (pre[i] == cur[j]) {
          req--;
          cur[j] = "Fuck You\n";
          break;
        }
      }
    }
    cout << req << endl;
  }
  return 0;
}
