#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, cnt = 0;
  string s1[105], s2[105];
  cin >> n;
  for (int i = 0; i < n; i++) cin >> s1[i];
  for (int i = 0; i < n; i++) cin >> s2[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (s1[i].find(s2[j]) == 0) {
        cnt++;
        s2[j] = '5';
        break;
      }
    }
  }
  cout << n - cnt;
  return 0;
}
