#include <bits/stdc++.h>
using namespace std;
int vis[101];
string a[101], b[101];
int main() {
  int n;
  while (cin >> n) {
    memset(vis, 0, sizeof(vis));
    for (int i = 0; i < n; ++i) {
      cin >> a[i];
    }
    for (int i = 0; i < n; ++i) {
      cin >> b[i];
    }
    int ans = 0;
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < n; ++j) {
        if (a[i] == b[j] && !vis[j]) {
          vis[j] = 1;
          ans++;
          break;
        }
      }
    }
    ans = n - ans;
    cout << ans << endl;
  }
  return 0;
}
