#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, i, j, l = 0, k;
  cin >> a;
  vector<int> v;
  for (i = 1; i <= a; i++) {
    cin >> b;
    v.push_back(b);
  }
  map<int, int> m;
  for (i = 0; i < a; i++) {
    if (v[i] < 400) {
      m[1] = 1;
    } else if (v[i] < 800) {
      m[2] = 1;
    } else if (v[i] < 1200) {
      m[3] = 1;
    } else if (v[i] < 1600) {
      m[4] = 1;
    } else if (v[i] < 2000) {
      m[5] = 1;
    } else if (v[i] < 2400) {
      m[6] = 1;
    } else if (v[i] < 2800) {
      m[7] = 1;
    } else if (v[i] < 3200) {
      m[8] = 1;
    } else
      m[9]++;
  }
  for (i = 1; i <= 8; i++) {
    if (m[i] == 1) l++;
  }
  k = l + m[9];
  if (k > 8) k = 8;
  cout << l << " " << k << endl;
}
