#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, int> ct;
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    string s;
    cin >> s;
    ct[s]++;
  }
  for (int i = 0; i < N; i++) {
    string s;
    cin >> s;
    if (ct[s]) ct[s]--;
  }
  int m = 0;
  for (auto i : ct) {
    m += i.second;
  }
  cout << m << endl;
  return 0;
}
