#include <bits/stdc++.h>
using namespace std;
#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
const long long INF = 3e18 + 12;
const int inf = 1e9;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < (int)(n); i++) {
    cin >> v[i];
  }
  map<int, int> mm;
  for (int i = 0; i < (int)(n); i++) {
    if (v[i] <= 399) {
      mm[0]++;
    } else if (v[i] < 799) {
      mm[1]++;
    } else if (v[i] < 1199) {
      mm[2]++;
    } else if (v[i] < 1599) {
      mm[3]++;
    } else if (v[i] < 1999) {
      mm[4]++;
    } else if (v[i] < 2399) {
      mm[5]++;
    } else if (v[i] < 2799) {
      mm[6]++;
    } else if (v[i] < 3199) {
      mm[7]++;
    } else {
      mm[8]++;
    }
  }
  int isum = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (mm[i] != 0) {
      isum++;
    }
  }
  cerr << "isum"
       << ": " << isum << '\n';
  if (isum == 0) {
    cout << 1 << " " << mm[8] << endl;
  } else {
    cout << isum << " " << isum + mm[8] << endl;
  }
  return 0;
}
