#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  vector<string> arr;
  vector<string> brr;
  string temp;
  for (int i = 0; i < n; ++i) {
    cin >> temp;
    arr.push_back(temp);
  }
  for (int i = 0; i < n; ++i) {
    cin >> temp;
    vector<string>::iterator it = std::find(arr.begin(), arr.end(), temp);
    if (it != arr.end()) {
      arr.erase(it);
    }
  }
  cout << arr.size();
  return 0;
}
