#include <bits/stdc++.h>
using namespace std;
int MinHeart(const vector<int>& Cherlok, const vector<int>& Moriarti) {
  int size = Cherlok.size();
  int c_pointer = 0;
  int heart = 0;
  for (int i = 0; i < size; i++) {
    if (Cherlok[c_pointer] <= Moriarti[i])
      c_pointer++;
    else {
      heart++;
    }
  }
  return heart;
}
int MaxGain(const vector<int>& Cherlok, const vector<int>& Moriarti) {
  int size = Cherlok.size();
  int m_pointer = size - 1;
  int heart = size;
  for (int i = size - 1; i >= 0; i--) {
    if (Cherlok[i] >= Moriarti[m_pointer]) {
      heart--;
    } else {
      m_pointer--;
    }
  }
  return heart;
}
int main() {
  size_t N;
  cin >> N;
  vector<int> Cherlok;
  for (int i = 0; i < N; i++) {
    char c;
    cin >> c;
    Cherlok.push_back(c - '0');
  }
  vector<int> Moriarti;
  for (int i = 0; i < N; i++) {
    char c;
    cin >> c;
    Moriarti.push_back(c - '0');
  }
  sort(begin(Moriarti), end(Moriarti));
  sort(begin(Cherlok), end(Cherlok));
  cout << MinHeart(Cherlok, Moriarti) << endl;
  cout << MaxGain(Cherlok, Moriarti) << endl;
  return 0;
}
