#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  int i, n, vis1[10], vis2[10], ans = 0;
  scanf("%d", &n);
  memset(vis1, 0, sizeof(vis1));
  memset(vis2, 0, sizeof(vis2));
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a == "M") vis1[0]++;
    if (a == "S") vis1[1]++;
    if (a == "L") vis1[2]++;
    if (a == "XS") vis1[3]++;
    if (a == "XL") vis1[4]++;
    if (a == "XXS") vis1[5]++;
    if (a == "XXL") vis1[6]++;
    if (a == "XXXS") vis1[7]++;
    if (a == "XXXL") vis1[8]++;
  }
  for (i = 0; i < n; i++) {
    cin >> a;
    if (a == "M") vis2[0]++;
    if (a == "S") vis2[1]++;
    if (a == "L") vis2[2]++;
    if (a == "XS") vis2[3]++;
    if (a == "XL") vis2[4]++;
    if (a == "XXS") vis2[5]++;
    if (a == "XXL") vis2[6]++;
    if (a == "XXXS") vis2[7]++;
    if (a == "XXXL") vis2[8]++;
  }
  for (i = 0; i <= 8; i++) {
    ans += abs(vis1[i] - vis2[i]);
  }
  printf("%d\n", ans / 2);
  return 0;
}
