#include <bits/stdc++.h>
using namespace std;
int a[1005], b[1005];
int main() {
  int n;
  string s, ss;
  cin >> n >> s >> ss;
  for (int i = 0; i < n; i++) {
    a[i] = s[i] - '0';
    b[i] = ss[i] - '0';
  }
  sort(a, a + n);
  sort(b, b + n);
  int sum1 = 0, sum2 = 0;
  for (int i = 0, j = 0; i < n && j < n;) {
    while (j < n) {
      if (a[i] <= b[j]) {
        i++;
        j++;
        sum1++;
        break;
      } else {
        j++;
      }
    }
  }
  int sum = n - sum1;
  cout << sum << endl;
  for (int i = 0, j = 0; i < n && j < n;) {
    while (j < n) {
      if (a[i] < b[j]) {
        i++;
        j++;
        sum2++;
        break;
      } else {
        j++;
      }
    }
  }
  cout << sum2;
}
