#include <bits/stdc++.h>
using namespace std;
bool compare(const string &a, const string &b) {
  if (a.length() != b.length()) {
    return a.length() < b.length();
  } else {
    return a < b;
  }
}
int getsum(string &a, string &b) {
  int ans = 0;
  for (int i = 0; i < a.size(); ++i) {
    if (a[i] != b[i]) ++ans;
  }
  return ans;
}
int main() {
  int t;
  string tmp;
  cin >> t;
  map<string, int> a;
  for (int i = 0; i < t; ++i) {
    cin >> tmp;
    ++a[tmp];
  }
  int counter = 0;
  for (int i = 0; i < t; ++i) {
    cin >> tmp;
    if (a[tmp] != 0) {
      --a[tmp];
    } else {
      ++counter;
    }
  }
  cout << counter << endl;
}
