#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:167772160000")
using namespace std;
map<string, int> cnt;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  for (int i = (0); i < (n); i++) {
    string s;
    cin >> s;
    cnt[s]++;
  }
  for (int i = (0); i < (n); i++) {
    string s;
    cin >> s;
    cnt[s]--;
  }
  int ans = 0;
  for (auto e : cnt) {
    if (e.second <= 0) continue;
    ans += e.second;
  }
  cout << ans;
  return 0;
}
