#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<string> a;
  vector<string> b;
  cin >> n;
  map<string, int> a_count;
  map<string, int> b_count;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    a_count[s]++;
    a.push_back(s);
  }
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    b_count[s]++;
    b.push_back(s);
  }
  for (auto &x : b_count) {
    string a = x.first;
    n = n - min(x.second, a_count[a]);
  }
  cout << n << endl;
  return 0;
}
