#include <bits/stdc++.h>
using namespace std;
int a[1010], b[1010] = {0}, c[1010] = {0};
int main() {
  int n, i, j, ans1 = 0, ans2 = 0;
  string s, t;
  cin >> n >> s >> t;
  for (i = 0; i < n; i++) {
    a[i] = t[i] - '0';
  }
  sort(a, a + n);
  for (i = 0; i < n; i++) {
    int f = 1;
    for (j = 0; j < n; j++) {
      if (!b[j] && a[j] >= s[i] - '0') {
        f = 0;
        b[j] = 1;
        break;
      }
    }
    ans1 += f;
  }
  for (i = 0; i < n; i++) {
    int f = 0;
    for (j = 0; j < n; j++) {
      if (!c[j] && a[j] > s[i] - '0') {
        f = 1;
        c[j] = 1;
        break;
      }
    }
    ans2 += f;
  }
  cout << ans1 << "\n" << ans2;
  return (0);
}
