#include <bits/stdc++.h>
using namespace std;
int a[100005], b[100005];
char ch;
int main() {
  int n, t;
  while ((scanf("%d", &n)) != EOF) {
    for (int i = 0; i < n; i++) cin >> ch, a[i] = ch - '0';
    for (int i = 0; i < n; i++) cin >> ch, b[i] = ch - '0';
    sort(a, a + n);
    sort(b, b + n);
    int mx = 0;
    int mn = 0;
    for (int i = 0, j = 0; i < n, j < n;) {
      if (a[i] <= b[j]) {
        mn++;
        j++;
        i++;
      } else {
        j++;
      }
    }
    for (int i = 0, j = 0; i < n, j < n;) {
      if (a[i] < b[j]) {
        mx++;
        j++;
        i++;
      } else {
        j++;
      }
    }
    printf("%d\n%d\n", n - mn, mx);
  }
  return 0;
}
