#include <bits/stdc++.h>
const int inf = 0x3f3f3f3f;
using namespace std;
char a[105][10], b[105][10];
int bookb[105], booka[105];
int n;
int ans;
int main() {
  while (~scanf("%d", &n)) {
    getchar();
    ans = 0;
    memset(booka, 0, sizeof(booka));
    memset(bookb, 0, sizeof(bookb));
    for (int i = 0; i < n; i++) {
      scanf("%s", a[i]);
    }
    for (int i = 0; i < n; i++) {
      scanf("%s", b[i]);
    }
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        if (strcmp(a[i], b[j]) == 0 && !bookb[j] && !booka[i]) {
          booka[i] = 1;
          bookb[j] = 1;
        }
      }
    }
    for (int i = 0; i < n; i++) {
      if (!bookb[i]) ans++;
    }
    printf("%d\n", ans);
  }
}
