#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 0;
  cin >> n;
  string prev[n];
  string cur[n];
  for (int i = 0; i < n; i++) {
    cin >> prev[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> cur[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (prev[i] == cur[j]) {
        prev[i] = "NO";
        cur[j] = "NO";
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (cur[i] != "NO") {
      c += 1;
    }
  }
  cout << c << endl;
  return 0;
}
