#include <bits/stdc++.h>
using namespace std;
ifstream in("in.txt");
ofstream out("out.txt");
int main() {
  ;
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n;
  string a, b;
  cin >> n >> a >> b;
  int cnt[10] = {0};
  for (int i = 0; i < n; i++) {
    cnt[b[i] - '0']++;
  }
  int mn = 0;
  bool was = 0;
  for (int i = 0; i < n; i++) {
    was = 0;
    for (int j = a[i] - '0'; j <= 9; j++) {
      if (cnt[j]) {
        cnt[j]--;
        was = 1;
        break;
      }
    }
    if (!was) mn++;
  }
  for (int i = 0; i < 10; i++) cnt[i] = 0;
  for (int i = 0; i < n; i++) {
    cnt[b[i] - '0']++;
  }
  int mx = 0;
  for (int i = 0; i < n; i++) {
    was = 0;
    for (int j = (a[i] - '0') + 1; j <= 9; j++) {
      if (cnt[j]) {
        cnt[j]--;
        mx++;
        was = 1;
        break;
      }
    }
    if (!was) {
      for (int j = 0; j <= (a[i] - '0'); j++) {
        if (cnt[j]) {
          cnt[j]--;
          break;
        }
      }
    }
  }
  cout << mn << " " << mx;
  return 0;
}
