#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1010;
char a[MAXN];
char b[MAXN];
int N;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> N;
  string s1, s2;
  cin >> s1 >> s2;
  for (int i = 0; i < N; i++) a[i] = s1[i];
  multiset<char> x1;
  multiset<char> x2;
  for (int i = 0; i < N; i++) {
    b[i] = s2[i];
    x1.insert(b[i]);
    x2.insert(b[i]);
  }
  int minAns = 0;
  int maxAns = 0;
  for (int i = 0; i < N; i++) {
    set<char>::iterator w = x1.lower_bound(a[i]);
    if (w != x1.end()) {
      x1.erase(w);
    } else {
      minAns++;
      x1.erase(x1.begin());
    }
    w = x2.upper_bound(a[i]);
    if (w != x2.end()) {
      x2.erase(w);
      maxAns++;
    } else {
      x2.erase(x2.begin());
    }
  }
  cout << minAns << endl;
  cout << maxAns << endl;
  return 0;
}
