#include <bits/stdc++.h>
using namespace std;
int ans;
map<string, int> mp;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string str;
    cin >> str;
    mp[str]++;
  }
  for (int i = 0; i < n; i++) {
    string str;
    cin >> str;
    if (mp[str] <= 0) ans++;
    mp[str]--;
  }
  cout << ans << endl;
  return 0;
}
