#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  string s1, s2;
  cin >> n;
  cin >> s1 >> s2;
  vector<long long> count1(10, 0), count2(10, 0);
  for (long long i = 0; i < n; i++) {
    long long digit = s2[i] - '0';
    count1[digit]++;
    count2[digit]++;
  }
  long long maxFlicks = 0;
  for (long long i = 0; i < n; i++) {
    long long digit = s1[i] - '0';
    bool possible = false;
    for (long long j = digit + 1; j <= 9; j++) {
      if (count1[j]) {
        possible = true;
        maxFlicks++;
        count1[j]--;
        break;
      }
    }
    if (!possible) {
      for (long long j = 0; j <= 9; j++) {
        if (count1[j]) {
          count1[j]--;
          break;
        }
      }
    }
  }
  long long minFlicks = 0;
  for (long long i = 0; i < n; i++) {
    long long digit = s1[i] - '0';
    bool possible = false;
    for (long long j = digit; j <= 9; j++) {
      if (count2[j]) {
        possible = true;
        count2[j]--;
        break;
      }
    }
    if (!possible) {
      minFlicks++;
      for (long long j = 0; j <= 9; j++) {
        if (count2[j]) {
          count2[j]--;
          break;
        }
      }
    }
  }
  cout << minFlicks << "\n" << maxFlicks << "\n";
  return 0;
}
