#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, count, ans = 0;
  cin >> n;
  string s1[n], s2[n];
  for (i = 0; i < n; i++) cin >> s1[i];
  for (i = 0; i < n; i++) cin >> s2[i];
  sort(s1, s1 + n);
  sort(s2, s2 + n);
  for (i = 0; i < n; i++) {
    count = 0;
    int k = 0;
    for (j = 0; j < n; j++)
      if (s1[i] != s2[j])
        count++;
      else if (k == 0) {
        s2[j] = '0';
        k++;
      }
    if (count == n) {
      ans++;
    }
  }
  cout << ans;
}
