#include <bits/stdc++.h>
using namespace std;
bool st(string x, string y) {
  if (x == "-1" && y == "-1")
    return false;
  else if (x == "-1")
    return false;
  else if (y == "-1")
    return true;
  else
    return x.length() > y.length();
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int n;
  cin >> n;
  long long int ans = 0;
  string a[n], b[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) cin >> b[i];
  for (int i = 0; i < n; i++) {
    if (a[i] == "-1") continue;
    for (int j = 0; j < n; j++) {
      if (a[i] == b[j]) {
        a[i] = "-1";
        b[j] = "-1";
        break;
      }
    }
  }
  sort(a, a + n, st);
  sort(b, b + n, st);
  for (int i = 0; i < n; i++) {
    int l = a[i].length();
    if (a[i] == "-1") break;
    for (int j = 0; j < l; j++) {
      if (a[i][j] != b[i][j]) ++ans;
    }
  }
  cout << ans << endl;
  return 0;
}
