#include <bits/stdc++.h>
using namespace std;
map<string, int> ms;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, ans = 0;
  string s;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> s;
    ms[s]++;
  }
  for (int i = 1; i <= n; i++) {
    cin >> s;
    if (ms[s]) {
      ms[s]--;
    } else
      ans++;
  }
  cout << ans;
}
