#include <bits/stdc++.h>
using namespace std;
char s1[205][20], s2[205][20];
bool mark1[205], mark2[205];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%s", s1[i]);
  for (int i = 0; i < n; i++) {
    mark1[i] = true;
    mark2[i] = true;
  }
  for (int i = 0; i < n; i++) scanf("%s", s2[i]);
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (!mark2[j]) continue;
      if (strcmp(s1[i], s2[j]) == 0) {
        mark1[i] = mark2[j] = false;
        cnt++;
        break;
      }
    }
  }
  printf("%d\n", n - cnt);
}
