#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
int n, ans1, ans2, cnt1[15], cnt2[15];
char s[N], t[N];
int main() {
  scanf("%d%s%s", &n, s + 1, t + 1);
  for (int i = 1; i <= n; i++) cnt1[t[i] - '0']++, cnt2[t[i] - '0']++;
  for (int i = 1; i <= n; i++) {
    int j = s[i] - '0';
    for (; j <= 9 && !cnt1[j]; j++)
      ;
    if (j == 10) {
      j = 0;
      ans1++;
      for (; !cnt1[j]; j++)
        ;
      cnt1[j]--;
    } else
      cnt1[j]--;
    j = s[i] - '0' + 1;
    for (; j <= 9 && !cnt2[j]; j++)
      ;
    if (j == 10) {
      j = 0;
      for (; !cnt2[j]; j++)
        ;
      cnt2[j]--;
    } else
      cnt2[j]--, ans2++;
  }
  cout << ans1 << endl << ans2 << endl;
  return 0;
}
