#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  char num1[n];
  char num2[n];
  for (int i = 0; i < n; i++) cin >> num1[i];
  for (int i = 0; i < n; i++) cin >> num2[i];
  sort(num1, num1 + n);
  sort(num2, num2 + n);
  int s1 = 0;
  int s2 = 0;
  int m = 0;
  int j;
  for (int i = 0; i < n; i++) {
    for (j = m; j < n; j++) {
      if (num2[j] >= num1[i]) {
        s1++;
        m = j + 1;
        break;
      }
    }
    if (j == n) break;
  }
  cout << n - s1 << endl;
  m = 0;
  for (int i = 0; i < n; i++) {
    for (j = m; j < n; j++) {
      if (num2[j] > num1[i]) {
        s2++;
        m = j + 1;
        break;
      }
    }
    if (j == n) break;
  }
  cout << s2 << endl;
}
