#include <bits/stdc++.h>
using namespace std;
int n;
string sa, sb;
vector<int> a, b;
void pvec() {
  a.clear();
  b.clear();
  for (int i = 0; i < (n); ++i) {
    a.push_back(sa[i] - 48);
    b.push_back(sb[i] - 48);
  }
  sort((b).begin(), (b).end());
}
void solve() {
  cin >> n;
  cin >> sa >> sb;
  int rst0 = 0, rst1 = 0;
  pvec();
  for (auto j : a) {
    auto it = upper_bound((b).begin(), (b).end(), j);
    if (it == b.end()) continue;
    if (*it > j) {
      b.erase(it);
      ++rst1;
    }
  }
  pvec();
  for (auto j : a) {
    auto it = lower_bound((b).begin(), (b).end(), j);
    if (it == b.end()) {
      ++rst0;
      continue;
    }
    if (*it < j)
      ++rst0;
    else
      b.erase(it);
  }
  cout << rst0;
  cout << '\n';
  cout << rst1;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  solve();
  return 0;
}
