#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n, m = 4000000000000000007, i = 1, q, j = 0, u = 0, k = 0, l = 0,
               r = 0, x = 4000000000000000007, y = 0;
  cin >> n;
  map<string, long long> p1, p2;
  string s;
  for (i = (1); i <= (n); i++) cin >> s, p1[s]++;
  for (i = (1); i <= (n); i++) cin >> s, p2[s]++;
  for (auto e : p1) u += min(e.second, p2[e.first]);
  cout << n - u;
}
