#include <bits/stdc++.h>
using namespace std;
int n, res;
map<string, int> M;
string s;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> s;
    M[s]++;
  }
  for (int i = 1; i <= n; i++) {
    cin >> s;
    if (M[s])
      M[s]--;
    else
      res++;
  }
  cout << res;
}
