#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int rate;
  int A[9];
  int color = 0;
  cin >> N;
  for (int i = 0; i < 9; i++) {
    A[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    cin >> rate;
    A[rate / 400] += 1;
  }
  for (int i = 0; i < 8; i++) {
    color += min(1, A[i]);
  }
  cout << color << " " << color + A[8];
  return 0;
}
