#include <bits/stdc++.h>
using namespace std;
const long long int N = 2e6;
const long long int INF = 1e18;
const long long int mod = 1e8;
long long int n;
int main() {
  cin >> n;
  string second;
  long long int sum = 0;
  map<string, long long int> m;
  for (long long int i = 0; i < n; i++) {
    cin >> second;
    m[second]++;
  }
  for (long long int i = 0; i < n; i++) {
    cin >> second;
    m[second]--;
  }
  for (auto i = m.begin(); i != m.end(); i++) {
    if (i->second > 0) {
      sum += (i->second);
    }
  }
  cout << sum << endl;
}
