#include <bits/stdc++.h>
int main() {
  int n, i;
  int count1[10], count2[10], diff[10];
  for (i = 0; i < 10; i++) {
    count1[i] = count2[i] = 0;
  }
  scanf("%d", &n);
  char ch;
  scanf("%c", &ch);
  for (i = 0; i < n; i++) {
    scanf("%c", &ch);
    count1[ch - '0']++;
  }
  scanf("%c", &ch);
  for (i = 0; i < n; i++) {
    scanf("%c", &ch);
    count2[ch - '0']++;
  }
  int mins, maxs, res;
  mins = maxs = res = 0;
  for (i = 0; i <= 9; i++) {
    if (count2[i] > count1[i] + res) {
      mins += (count2[i] - count1[i] - res);
      res = 0;
    } else {
      res = (count1[i] + res - count2[i]);
    }
  }
  res = 0;
  for (i = 8; i >= 0; i--) {
    if (count2[i + 1] + res >= count1[i]) {
      maxs += count1[i];
      res = (count2[i + 1] + res - count1[i]);
    } else {
      maxs += (count2[i + 1] + res);
      res = 0;
    }
  }
  printf("%d\n%d\n", mins, maxs);
  return 0;
}
