#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n;
  cin >> n;
  string s;
  map<string, int> mp;
  mp["M"] = 0;
  mp["L"] = 0;
  mp["S"] = 0;
  mp["XS"] = 0;
  mp["XXS"] = 0;
  mp["XXXS"] = 0;
  mp["XL"] = 0;
  mp["XXL"] = 0;
  mp["XXXL"] = 0;
  for (int i = 0; i < n; i++) {
    cin >> s;
    mp[s]++;
  }
  map<string, int> mp1;
  mp1["M"] = 0;
  mp1["L"] = 0;
  mp1["S"] = 0;
  mp1["XS"] = 0;
  mp1["XXS"] = 0;
  mp1["XXXS"] = 0;
  mp1["XL"] = 0;
  mp1["XXL"] = 0;
  mp1["XXXL"] = 0;
  for (int i = 0; i < n; i++) {
    cin >> s;
    mp1[s]++;
  }
  long long int ans = 0;
  if (mp1["M"] - mp["M"] > 0) ans = mp1["M"] - mp["M"];
  if (mp1["L"] - mp["L"] > 0) ans += mp1["L"] - mp["L"];
  if (mp1["S"] - mp["S"] > 0) ans += mp1["S"] - mp["S"];
  if (mp1["XS"] - mp["XS"] > 0) ans += mp1["XS"] - mp["XS"];
  if (mp1["XXS"] - mp["XXS"] > 0) ans += mp1["XXS"] - mp["XXS"];
  if (mp1["XXXS"] - mp["XXXS"] > 0) ans += mp1["XXXS"] - mp["XXXS"];
  if (mp1["XL"] - mp["XL"] > 0) ans += mp1["XL"] - mp["XL"];
  if (mp1["XXL"] - mp["XXL"] > 0) ans += mp1["XXL"] - mp["XXL"];
  if (mp1["XXXL"] - mp["XXXL"] > 0) ans += mp1["XXXL"] - mp["XXXL"];
  cout << ans << "\n";
  return 0;
}
