#include <bits/stdc++.h>
using std::string;
std::map<string, int> mp;
string s;
int ans = 0;
inline void solve(string s) {
  if (mp[s] > 0) {
    ans += mp[s];
  }
  return;
}
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    std::cin >> s;
    mp[s]++;
  }
  for (int i = 1; i <= n; i++) {
    std::cin >> s;
    mp[s]--;
  }
  solve("M");
  solve("S");
  solve("L");
  solve("XL");
  solve("XXL");
  solve("XXXL");
  solve("XS");
  solve("XXS");
  solve("XXXS");
  printf("%d", ans);
  return 0;
}
