#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long INF = LLONG_MAX;
const long long NINF = LLONG_MIN;
int main() {
  long long t = 1;
  while (t-- > 0) {
    long long n;
    cin >> n;
    vector<string> a(n), b(n);
    for (long long i = 0; i < n; i++) cin >> a[i];
    for (long long i = 0; i < n; i++) cin >> b[i];
    map<string, long long> mpa, mpb;
    for (long long i = 0; i < n; i++) mpa[a[i]]++;
    for (long long i = 0; i < n; i++) mpb[b[i]]++;
    long long ans = n;
    for (auto x : mpa) ans -= min(x.second, mpb[x.first]);
    cout << ans << endl;
  }
}
