#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long n;
  cin >> n;
  vector<long long> a(n);
  vector<bool> iro(8, false);
  long long legend = 0;
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
    if (a[i] <= 399)
      iro[0] = true;
    else if (a[i] <= 799)
      iro[1] = true;
    else if (a[i] <= 1199)
      iro[2] = true;
    else if (a[i] <= 1599)
      iro[3] = true;
    else if (a[i] <= 1999)
      iro[4] = true;
    else if (a[i] <= 2399)
      iro[5] = true;
    else if (a[i] <= 2799)
      iro[6] = true;
    else if (a[i] <= 3199)
      iro[7] = true;
    else
      legend++;
  }
  long long kosu = count((iro).begin(), (iro).end(), true);
  if (legend > 0) {
    if (kosu == 0) {
      cout << 1 << " " << min(n, 8LL) << endl;
    } else {
      cout << kosu << " " << min(kosu + legend, 8LL) << endl;
    }
  } else {
    cout << kosu << " " << kosu << endl;
  }
}
