#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ld = long double;
using ul = uint64_t;
using vi = vector<int>;
using vl = vector<ll>;
using vvi = vector<vi>;
using vvl = vector<vl>;
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using vpi = vector<pi>;
static constexpr int inf = (int)1e9 + 5;
static constexpr ll infl = (ll)1e18 + 5;
static constexpr ll M = (ll)1e9 + 7;
static mt19937 rng((uint32_t)chrono::duration_cast<chrono::nanoseconds>(
                       chrono::high_resolution_clock::now().time_since_epoch())
                       .count());
int cpmlen(const string &a, const string &b) {
  if (a.size() == b.size()) return a < b;
  return a.size() < b.size();
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.precision(10);
  int n;
  cin >> n;
  vector<string> a(n), b(n);
  for (auto &ai : a) cin >> ai;
  for (auto &bi : b) cin >> bi;
  sort((a).begin(), (a).end(), cpmlen);
  sort((b).begin(), (b).end(), cpmlen);
  map<char, int> m;
  for (int i = 0; i < (n); ++i)
    if (a[i].size() == 1) m[a[i][0]]++, m[b[i][0]]--;
  int ans = abs(m['M']) + abs(m['L']) + abs(m['S']);
  ans /= 2;
  for (int i = 0; i < (n); ++i)
    if (a[i].size() > 1) ans += a[i] != b[i];
  cout << ans;
  return 0;
}
