#include <bits/stdc++.h>
using namespace std;
int dh[4] = {1, 0, -1, 0};
int dw[4] = {0, 1, 0, -1};
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  for (long long i = 0; i < n; ++i) cin >> a[i];
  vector<int> b(8, 0);
  int c = 0;
  for (long long i = 0; i < n; ++i) {
    if (a[i] <= 399) {
      ++b[0];
    } else if (a[i] <= 799) {
      ++b[1];
    } else if (a[i] <= 1199) {
      ++b[2];
    } else if (a[i] <= 1599) {
      ++b[3];
    } else if (a[i] <= 1999) {
      ++b[4];
    } else if (a[i] <= 2399) {
      ++b[5];
    } else if (a[i] <= 2799) {
      ++b[6];
    } else if (a[i] <= 3199) {
      ++b[7];
    } else {
      ++c;
    }
  }
  int cnt = 0;
  for (long long i = 0; i < 8; ++i) {
    if (b[i] != 0) ++cnt;
  }
  if (cnt == 0 && c != 0) {
    cout << 1 << " ";
  } else {
    cout << cnt << " ";
  }
  if (c != 0) {
    cout << min(8, cnt + c) << endl;
  } else {
    cout << cnt << endl;
  }
}
