#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[N];
  int col[9] = {0};
  int buff = 0;
  for (int i = 0; i < N; ++i) {
    cin >> A[i];
    A[i] = A[i] / 400;
    if (A[i] >= 8) A[i] = 8;
    col[A[i]]++;
  }
  for (int i = 0; i < 8; ++i) {
    if (col[i]) buff++;
  }
  cout << buff << " " << buff + col[8] << endl;
  return 0;
}
