#include <bits/stdc++.h>
using namespace std;
void Draganov47() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  Draganov47();
  int n;
  cin >> n;
  vector<string> a(n), b(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int j = 0; j < n; j++) {
    cin >> b[j];
  }
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  int ans = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (a[i] == b[j]) {
        a[i] = "-";
        b[j] = "-";
        break;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (a[i] == "-") {
      continue;
    }
    int mn = 1e9, imn = -1;
    for (int j = 0; j < n; j++) {
      if (a[i].size() == b[j].size() && a[i] != "-" && b[j] != "-") {
        int now = 0;
        for (int k = 0; k < a[i].size(); k++) {
          if (a[i][k] != b[j][k]) {
            now++;
          }
        }
        if (now < mn) {
          mn = now, imn = j;
        }
      }
    }
    ans += mn;
    b[imn] = "-";
  }
  cout << ans;
  return 0;
}
