#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int s = 0, n, i, j, k, c = 0, p = 0, g1 = 0, b1 = 0, g2 = 0, c1 = 0,
                b2 = 0, y1 = 0, o1 = 0, r1 = 0;
  vector<long long int> v;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> k;
    v.push_back(k);
  }
  for (i = 0; i < n; i++) {
    if (v[i] <= 1 && v[i] >= 399) {
      g1 = 1;
    } else if (v[i] >= 400 && v[i] <= 799) {
      b1 = 1;
    } else if (v[i] >= 800 && v[i] <= 1199) {
      g2 = 1;
    } else if (v[i] >= 1200 && v[i] <= 1599) {
      c1 = 1;
    } else if (v[i] >= 1600 && v[i] <= 1999) {
      b2 = 1;
    } else if (v[i] >= 2000 && v[i] <= 2399) {
      y1 = 1;
    } else if (v[i] >= 2400 && v[i] <= 2799) {
      o1 = 1;
    } else if (v[i] >= 2800 && v[i] <= 3199) {
      r1 = 1;
    } else
      c++;
  }
  s += g1 + b1 + g2 + c1 + b2 + y1 + o1 + r1;
  if (s > 0) {
    cout << s << " ";
  } else
    cout << "1 ";
  if (c == 0)
    cout << s << endl;
  else
    cout << s + c << endl;
  return 0;
}
