#include <bits/stdc++.h>
using namespace std;
int getCount(string a, string b) {
  int c = 0;
  for (int i = 0; i < a.size(); i++)
    if (a[i] != b[i]) c++;
  return c;
}
int Ans(vector<string>& a, vector<string>& b) {
  int ans = 0;
  map<string, int> mp;
  for (int i = 0; i < a.size(); i++) mp[a[i]]++;
  vector<string> res;
  vector<string> temp;
  for (int j = 0; j < b.size(); j++) {
    if (mp[b[j]] > 0)
      mp[b[j]]--;
    else
      res.push_back(b[j]);
  }
  for (auto it : mp) {
    for (int i = 0; i < it.second; i++) temp.push_back(it.first);
  }
  for (int i = 0; i < res.size(); i++) {
    string k = res[i];
    int curr_min = INT_MAX;
    int idx = -1;
    for (int j = 0; j < temp.size(); j++) {
      string l = temp[j];
      if (l.size() && k.size() == l.size()) {
        int c = getCount(k, l);
        if (c < curr_min) {
          idx = j;
          curr_min = c;
        }
      }
    }
    if (idx != -1) {
      temp[idx] = "";
      ans += curr_min;
    }
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<string> a(n);
  vector<string> b(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) cin >> b[i];
  cout << Ans(a, b) << endl;
  return 0;
}
