#include <bits/stdc++.h>
using namespace std;
long long int f1[19] = {0}, f2[19] = {0}, a[19] = {0}, b[19] = {0};
int main() {
  string s1, s2;
  long long int i, k, n, m, n1, n2, cnt1 = 0, cnt2 = 0;
  int j;
  cin >> n;
  cin >> s1;
  cin >> s2;
  for (i = 0; i < n; i++) {
    j = s1[i] - '0';
    f1[j] += 1;
    a[j] += 1;
    j = s2[i] - '0';
    f2[j] += 1;
    b[j] += 1;
  }
  f2[-1] = 0;
  for (i = 9; i >= 0; i--) {
    if (f2[i] >= f1[i]) {
      f2[i - 1] += f2[i] - f1[i];
    } else
      cnt1 += f1[i] - f2[i];
  }
  for (i = 0; i <= 9; i++) {
    for (j = i + 1; j <= 9; j++) {
      if (a[i] < b[j]) {
        b[j] -= a[i];
        cnt2 += a[i];
        break;
      } else {
        a[i] -= b[j];
        cnt2 += b[j];
        b[j] = 0;
      }
    }
  }
  cout << cnt1 << endl;
  cout << cnt2 << endl;
  return 0;
}
