#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  map<string, long long> mp1, mp2;
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    mp1[s]++;
  }
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    mp2[s]++;
  }
  for (auto it = mp1.begin(); it != mp1.end(); it++) {
    mp2[it->first] -= min(it->second, mp2[it->first]);
  }
  long long ans = 0;
  for (auto it = mp2.begin(); it != mp2.end(); it++) {
    ans += it->second;
  }
  cout << ans;
}
