#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, ans1, ans2;
  int c[1010], d[1010];
  bool f1[1010], f2[1010], flag;
  string a, b;
  cin >> n;
  cin >> a;
  cin >> b;
  for (i = 0; i < n; i++) c[i] = a[i] - 48;
  for (i = 0; i < n; i++) d[i] = b[i] - 48;
  sort(c, c + n);
  sort(d, d + n);
  memset(f1, false, sizeof(f1));
  memset(f2, false, sizeof(f2));
  ans1 = ans2 = 0;
  for (i = 0; i < n; i++) {
    flag = false;
    for (j = n - 1; j >= 0; j--) {
      if (c[j] <= d[i] && !f1[j]) {
        f1[j] = true;
        flag = true;
        break;
      }
    }
    if (!flag) ans1++;
  }
  for (i = 0; i < n; i++) {
    flag = false;
    for (j = 0; j < n; j++) {
      if (d[j] > c[i] && !f2[j]) {
        f2[j] = true;
        flag = true;
        break;
      }
    }
    if (flag) ans2++;
  }
  cout << ans1 << endl;
  cout << ans2 << endl;
  return 0;
}
