#include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     int n;     cin >> n;     int s[n];     int m[n];     string st;     cin >> st;     for (int i = 0; i < n; i++) s[i] = st[i] -  0 ;     cin >> st;     for (int i = 0; i < n; i++) m[i] = st[i] -  0 ;     sort(s, s + n);     sort(m, m + n);     int sher = 0;     int mor = 0;     int pos = 0;     for (int i = 0; i < n; i++) {       if (s[pos] < m[i]) {         sher++;         pos++;       }     }     pos = 0;     mor = n;     for (int i = 0; i < n; i++) {       if (m[i] >= s[pos]) mor--, pos++;     }     cout << mor <<   n  << sher;   }   