#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  int a[101];
  int color[9];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < 9; i++) color[i] = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] >= 3200) a[i] = 3200;
    color[a[i] / 400]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) cnt++;
  }
  int min = (((cnt) > (1)) ? (cnt) : (1));
  int max = (((cnt + color[8]) < (8)) ? (cnt + color[8]) : (8));
  printf("%d %d\n", min, max);
  return 0;
}
