#include <bits/stdc++.h>
const bool DEBUG = false;
using namespace std;
const long long maxn = 2e5 + 5;
const long long INF = 1e18 + 1;
const long long M = 1e9 + 7;
const int lg = 21;
int ans, n;
bool A[maxn], B[maxn];
string a[maxn], b[maxn];
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> 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++) {
    for (int j = 0; j < n; j++) {
      if (A[i] == 1 or B[j] == 1) continue;
      if (a[i] == b[j]) A[i] = B[j] = 1;
    }
  }
  for (int i = 0; i < n; i++)
    if (!A[i]) ans++;
  cout << ans << endl;
  return 0;
}
