#include <bits/stdc++.h>
using namespace std;
int n, ans;
string s;
map<string, int> m[5];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> s;
    m[s.length()][s]++;
  }
  for (int i = 1; i <= n; i++) {
    cin >> s;
    m[s.length()][s]--;
  }
  for (int i = 1; i <= 4; i++) {
    for (auto w : m[i]) {
      if (w.second > 0) ans += w.second;
    }
  }
  cout << ans;
}
