#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
int main() {
  long long N;
  cin >> N;
  vector<long long> A(N);
  vector<long long> Colors(9, 0);
  for (long long i = 0; i < (N); i++) {
    cin >> A[i];
    if (A.at(i) > 3199) {
      Colors[0]++;
    } else if (A.at(i) > 2799) {
      Colors[1]++;
    } else if (A.at(i) > 2399) {
      Colors[2]++;
    } else if (A.at(i) > 1999) {
      Colors[3]++;
    } else if (A.at(i) > 1599) {
      Colors[4]++;
    } else if (A.at(i) > 1199) {
      Colors[5]++;
    } else if (A.at(i) > 799) {
      Colors[6]++;
    } else if (A.at(i) > 399) {
      Colors[7]++;
    } else if (A.at(i) > 0) {
      Colors[8]++;
    }
  }
  long long cnt = 0;
  for (long long i = 1; i < (9); i++) {
    if (Colors.at(i) > 0) {
      cnt++;
    }
  }
  if (cnt == 0 && Colors.at(0) > 0) {
    cout << 1 << " ";
  } else {
    cout << cnt << " ";
  }
  cout << min(8, int(cnt + Colors.at(0))) << endl;
  return 0;
}
