#include <bits/stdc++.h>
using namespace std;
map<string, int> cnt[2];
int main() {
  int n;
  cin >> n;
  for (int lnum = 0; lnum < 2; ++lnum)
    for (int i = 0; i < n; ++i) {
      string cur;
      cin >> cur;
      cnt[lnum][cur]++;
    }
  int ans = 0;
  for (pair<string, int> cp : cnt[0])
    ans += max(0, cp.second - cnt[1][cp.first]);
  cout << ans;
  return 0;
}
