#include <bits/stdc++.h>
using namespace std;
bool pos[1005];
int main() {
  int n;
  string a, b;
  cin >> n >> a >> b;
  int rez = 0;
  for (int i = 0; i < n; i++) {
    int Min = 10, pz = -1;
    for (int j = 0; j < n; j++)
      if (b[j] - '0' < Min && b[j] - '0' >= a[i] - '0' && !pos[j]) {
        Min = b[j] - '0';
        pz = j;
      }
    if (pz == -1)
      rez++;
    else
      pos[pz] = 1;
  }
  cout << rez << "\n";
  memset(pos, 0, sizeof(pos));
  rez = 0;
  for (int i = 0; i < n; i++) {
    int Min = 10, pz = -1;
    for (int j = 0; j < n; j++)
      if (b[j] - '0' < Min && b[j] - '0' > a[i] - '0' && !pos[j]) {
        Min = b[j] - '0';
        pz = j;
      }
    if (pz != -1) {
      pos[pz] = 1;
      rez++;
    }
  }
  cout << rez;
}
