#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long int> a, b;
  string s;
  getchar();
  cin >> s;
  for (int i = 0; i < n; i++) a.push_back(s[i] - '0');
  cin >> s;
  for (int i = 0; i < n; i++) b.push_back(s[i] - '0');
  sort(a.rbegin(), a.rend());
  sort(b.rbegin(), b.rend());
  int i = 0, j = 0;
  int c = 0;
  while (i < n && j < n) {
    if (b[j] >= a[i])
      j++, i++;
    else
      c++, i++;
  }
  cout << c << "\n";
  i = 0;
  j = 0;
  c = 0;
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  while (i < n && j < n) {
    if (a[i] < b[j])
      i++, j++, c++;
    else if (a[i] >= b[j])
      j++;
  }
  cout << c;
}
