#include <bits/stdc++.h>
using namespace std;
int N, ans;
string s;
map<string, int> mp;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> s;
    ans++;
    mp[s]++;
  }
  for (int i = 1; i <= N; i++) {
    cin >> s;
    if (mp[s] > 0)
      ans--;
    else
      ans++;
    mp[s]--;
  }
  cout << ans / 2;
  return 0;
}
