#include <bits/stdc++.h>
using namespace std;
string a[105], b[105];
map<string, int> A, B;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) cin >> b[i];
  for (int i = 0; i < n; i++) {
    A[a[i]]++;
    B[b[i]]++;
  }
  map<string, int>::iterator it;
  int ans = n;
  for (it = A.begin(); it != A.end(); it++) {
    ans -= min(it->second, B[it->first]);
  }
  cout << ans << endl;
}
