#include <bits/stdc++.h>
using namespace std;
int N;
map<string, int> mp;
string str;
int cnt = 0;
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    cin >> str;
    mp[str]++;
  }
  int M = N;
  for (int i = 0; i < M; i++) {
    cin >> str;
    if (mp[str]) {
      N--;
      mp[str]--;
    }
  }
  printf("%d\n", N);
  return 0;
}
