#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 1, INF = 1e9;
int n, a[MAX], ans = 0;
string s[MAX], t[MAX];
map<string, int> mapas, mapat;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> s[i];
  for (int i = 1; i <= n; i++) cin >> t[i];
  for (int i = 1; i <= n; i++) mapas[s[i]]++;
  for (int i = 1; i <= n; i++)
    if (mapas[t[i]]) {
      mapas[t[i]]--;
    } else
      ans++;
  cout << ans;
  return 0;
}
