#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n;
  cin >> n;
  ;
  string s1, s2;
  cin >> s1 >> s2;
  sort(s1.begin(), s1.end());
  sort(s2.begin(), s2.end());
  long long num1 = 0, num2 = 0;
  long long pos = (n - 1);
  for (long long i = (n - 1); i >= 0; i--) {
    if (s1[i] > s2[pos]) {
      num1++;
    } else {
      pos--;
    }
  }
  pos = (n - 1);
  for (long long i = (n - 1); i >= 0; i--) {
    if (s1[i] < s2[pos]) {
      num2++;
      pos--;
    }
  }
  cout << num1 << endl;
  cout << num2 << endl;
  return 0;
}
