#include <bits/stdc++.h>
using namespace std;
int x[20], y[20];
int z[20], t[20];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  string a, b;
  cin >> n >> a >> b;
  for (int i = 0; i < n; i++) {
    x[a[i] - '0']++;
    z[a[i] - '0']++;
    y[b[i] - '0']++;
    t[b[i] - '0']++;
  }
  int s = 0;
  for (int i = 0; i < 10; i++) {
    if (y[i] <= x[i]) {
      x[i] -= y[i];
      int j = i;
      while (j < 10 && x[i] != 0) {
        j++;
        if (y[j] < x[i]) {
          x[i] -= y[j];
          y[j] = 0;
        } else {
          y[j] -= x[i];
          x[i] = 0;
        }
      }
    } else {
      x[i] = 0;
    }
  }
  for (int i = 0; i < 10; i++) {
    s += x[i];
  }
  cout << s << endl;
  s = 0;
  for (int i = 0; i < 9; i++) {
    int j = i + 1;
    if (z[i] <= t[j]) {
      s += z[i];
    } else {
      s += t[j];
      z[i] -= t[j];
      while (j < 10 && z[i] != 0) {
        j++;
        if (z[i] <= t[j]) {
          s += z[i];
          t[j] -= z[i];
          z[i] = 0;
        } else {
          s += t[j];
          z[i] -= t[j];
          t[j] = 0;
        }
      }
    }
  }
  cout << s << endl;
}
