#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int n;
  cin >> n;
  string s1, s2;
  cin >> s1 >> s2;
  int c1 = 0, c2 = 0;
  int visited[1002] = {0};
  vector<int> str1, str2;
  for (int i = 0; i < s1.length(); i++) {
    str1.push_back((int)s1[i] - 48);
  }
  for (int i = 0; i < s2.length(); i++) {
    str2.push_back((int)s2[i] - 48);
  }
  sort(str1.begin(), str1.end());
  sort(str2.begin(), str2.end());
  for (int i = 0; i < str1.size(); i++) {
    int mark = 0;
    for (int j = 0; j < str2.size(); j++) {
      if ((int)s1[i] - 48 <= str2[j] && visited[j] == 0) {
        visited[j] = 1;
        mark = 1;
        break;
      }
    }
    if (mark == 0) c1++;
  }
  int visited2[1002] = {0};
  for (int i = 0; i < str1.size(); i++) {
    int mark = 0;
    for (int j = 0; j < str2.size(); j++) {
      if ((int)s1[i] - 48 < str2[j] && visited2[j] == 0) {
        mark = 1;
        visited2[j] = 1;
        c2++;
        break;
      }
    }
    if (mark == 0) {
      for (int j = 0; j < str2.size(); j++) {
        if (visited2[j] == 0) {
          visited2[j] = 1;
          break;
        }
      }
    }
  }
  cout << c1 << endl << c2 << endl;
  return 0;
}
