#include <bits/stdc++.h>
using namespace std;
const int MAXN = 105;
char a[MAXN][5], b[MAXN][5];
int main() {
  int n;
  map<string, int> mp;
  mp.clear();
  mp["M"] = 1;
  mp["S"] = 2;
  mp["L"] = 3;
  mp["XS"] = 4;
  mp["XL"] = 5;
  mp["XXS"] = 6;
  mp["XXL"] = 7;
  mp["XXXS"] = 8;
  mp["XXXL"] = 9;
  int cnta[10], cntb[10];
  while (scanf("%d", &n) != EOF) {
    memset(cnta, 0, sizeof(cnta));
    memset(cntb, 0, sizeof(cntb));
    for (int i = 1; i <= n; i++) {
      scanf("%s", a[i]);
      cnta[mp[a[i]]]++;
    }
    for (int i = 1; i <= n; i++) {
      scanf("%s", b[i]);
      cntb[mp[b[i]]]++;
    }
    int ans = 0;
    for (int i = 1; i <= 9; i++) {
      ans += abs(cnta[i] - cntb[i]);
    }
    ans /= 2;
    printf("%d\n", ans);
  }
  return 0;
}
