#include <bits/stdc++.h>
using namespace std;
map<string, int> a;
int main() {
  int n;
  string s;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> s, a[s]++;
  for (int i = 0; i < n; i++) cin >> s, a[s]--;
  int ans = 0;
  for (map<string, int>::iterator i = a.begin(); i != a.end(); i++)
    if (i->second > 0) ans += i->second;
  cout << ans << endl;
  return 0;
}
