#include <bits/stdc++.h>
using namespace std;
const long long N = (long long)(5e5) + 322;
const long long INF = (long long)(1e9);
const long long mod = (long long)(1e9) + 7;
const double eps = 1e-9;
string a, b;
multiset<int> S, S1;
int x, y;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  cin >> a >> b;
  for (long long i = 0; i <= (int)(b.size()) - 1; ++i) {
    S.insert(b[i] - '0');
    S1.insert(b[i] - '0');
  }
  for (long long i = 0; i <= (int)(a.size()) - 1; ++i) {
    auto it = S.upper_bound(a[i] - '0');
    auto it1 = S1.lower_bound(a[i] - '0');
    if (it != S.end())
      S.erase(it);
    else
      x++;
    if (it1 != S1.end())
      S1.erase(it1);
    else
      y++;
  }
  cout << y << "\n" << n - x;
  return 0;
}
