#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string a[n], b[n];
  map<string, int> m;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    ++m[a[i]];
  }
  for (int i = 0; i < n; ++i) {
    cin >> b[i];
    --m[b[i]];
  }
  int ans = 0;
  vector<string> v = {"XXXL", "XXXS", "XXL", "XXS", "XL", "XS", "S", "L", "M"};
  ans = (abs(m["XXXL"]) + abs(m["XXXS"])) / 2;
  ans += (abs(m["XXL"]) + abs(m["XXS"])) / 2;
  ans += (abs(m["XL"]) + abs(m["XS"])) / 2;
  ans += (abs(m["S"]) + abs(m["L"]) + abs(m["M"])) / 2;
  cout << ans;
}
