#include <bits/stdc++.h>
using namespace std;
int n, a[10][10], b[10][10];
char s[10];
int main() {
  for (; scanf("%d", &n) != EOF;) {
    for (int i = 1; i <= 4; i++)
      for (int j = 0; j < 3; j++) a[i][j] = b[i][j] = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%s", s);
      int len = strlen(s);
      if (s[len - 1] == 'M')
        a[len][0]++;
      else if (s[len - 1] == 'S')
        a[len][1]++;
      else
        a[len][2]++;
    }
    for (int i = 1; i <= n; i++) {
      scanf("%s", s);
      int len = strlen(s);
      if (s[len - 1] == 'M')
        b[len][0]++;
      else if (s[len - 1] == 'S')
        b[len][1]++;
      else
        b[len][2]++;
    }
    for (int i = 1; i <= 4; i++)
      for (int j = 0; j < 3; j++) a[i][j] -= min(a[i][j], b[i][j]);
    int ans = 0;
    for (int i = 1; i <= 4; i++)
      for (int j = 0; j < 3; j++) ans += a[i][j];
    printf("%d\n", ans);
  }
  return 0;
}
