#include <bits/stdc++.h>
using namespace std;
int n;
char a[1005], b[1005];
int minn, maxx;
int main() {
  scanf("%d", &n);
  scanf("%s%s", a, b);
  sort(a, a + n);
  sort(b, b + n);
  for (int i = 0, j = 0; i < n; i++) {
    while (j < n && b[j] < a[i]) j++;
    if (j < n)
      j++;
    else
      minn++;
  }
  for (int i = 0, j = 0; i < n; i++) {
    while (j < n && b[j] <= a[i]) j++;
    if (j < n) {
      maxx++;
      j++;
    }
  }
  printf("%d\n%d\n", minn, maxx);
  return 0;
}
