#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fast();
  int n;
  cin >> n;
  map<string, int> m;
  for (int i = 0; i < n; ++i) {
    string temp;
    cin >> temp;
    m[temp]++;
  }
  long long c = 0;
  for (int i = 0; i < n; ++i) {
    string temp;
    cin >> temp;
    if (m[temp] > 0)
      m[temp]--;
    else
      c++;
  }
  cout << c << '\n';
}
