#include <bits/stdc++.h>
using namespace std;
template <class T>
void dbs(string str, T t) {
  cerr << str << " : " << t << "\n";
}
template <class T, class... S>
void dbs(string str, T t, S... s) {
  int idx = str.find(',');
  cerr << str.substr(0, idx) << " : " << t << ", ";
  dbs(str.substr(idx + 1), s...);
}
template <class S, class T>
ostream& operator<<(ostream& os, const pair<S, T>& p) {
  return os << "(" << p.first << ", " << p.second << ")";
}
template <class T>
ostream& operator<<(ostream& os, const vector<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
ostream& operator<<(ostream& os, const set<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class S, class T>
ostream& operator<<(ostream& os, const map<S, T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
void prc(T a, T b) {
  cerr << "[";
  for (T i = a; i != b; ++i) {
    if (i != a) cerr << ", ";
    cerr << *i;
  }
  cerr << "]\n";
}
void code() {
  long long n;
  cin >> n;
  vector<long long> cnt(4);
  long long a, b, c;
  a = b = c = 0;
  for (long long i = 0; i < (long long)(n); ++i) {
    string s;
    cin >> s;
    if (s == "M") a++;
    if (s == "S") b++;
    if (s == "L")
      c++;
    else if (s == "XS")
      cnt[1]++;
    else if (s == "XXS")
      cnt[2]++;
    else if (s == "XXXS")
      cnt[3]++;
  }
  for (long long i = 0; i < (long long)(n); ++i) {
    string s;
    cin >> s;
    if (s == "M") a--;
    if (s == "S") b--;
    if (s == "L")
      c--;
    else if (s == "XS")
      cnt[1]--;
    else if (s == "XXS")
      cnt[2]--;
    else if (s == "XXXS")
      cnt[3]--;
  }
  long long ans = 0;
  ans += abs(a) + abs(b) + abs(c);
  ans /= 2;
  ans += abs(cnt[1]) + abs(cnt[2]) + abs(cnt[3]);
  cout << ans;
}
int main() {
  int t = 1;
  for (auto i = (1); i != (t + 1); i++) {
    code();
  }
  return 0;
}
