#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a[100] = {0};
  int color[9] = {0}, syurui = 0;
  int max, min;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    ++color[a[i] / 400];
  }
  for (int i = 0; i < 8; i++) {
    if (color[i]) syurui++;
  }
  max = min = syurui;
  if (max + color[8] <= 8)
    max += color[8];
  else
    max = 8;
  if (min == 0 && color[8]) ++min;
  cout << min << " " << max << endl;
  return 0;
}
