#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)1e5 + 5;
int n, s[10], m[10], s1[10], m1[10];
string ss;
int main() {
  cin >> n;
  cin >> ss;
  for (auto c : ss) {
    int t = 0 + (c - '0');
    s[t]++;
    s1[t]++;
  }
  cin >> ss;
  for (auto c : ss) {
    int t = 0 + (c - '0');
    m[t]++;
    m1[t]++;
  }
  int sh = 0, mr = 0, ext = 0;
  for (int i = 9; i >= 0; i--) {
    int com;
    if (ext) {
      com = min(s[i], ext);
      ext -= com;
      s[i] -= com;
    }
    if (s[i] >= m[i])
      mr += s[i] - m[i];
    else
      ext += m[i] - s[i];
  }
  cout << mr << endl;
  int less = 0;
  sh = 0;
  for (int i = 0; i < 10; i++) {
    int com;
    if (less) {
      com = min(less, m1[i]);
      sh += com;
      less -= com;
    }
    less += s1[i];
  }
  cout << sh;
}
