#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  int a[N];
  bool flag[8];
  for (int i = 0; i < 8; i++) flag[i] = false;
  int high_score = 0;
  for (int i = 0; i < N; i++) {
    int num;
    scanf("%d", &num);
    if (num / 400 <= 7) {
      flag[num / 400] = true;
    } else {
      high_score++;
    }
  }
  int low_score = 0;
  for (int i = 0; i < 8; i++) {
    if (flag[i]) low_score++;
  }
  int res_max;
  if (high_score >= 8 - low_score)
    res_max = 8;
  else
    res_max = high_score + low_score;
  int res_min;
  if (low_score >= 1)
    res_min = low_score;
  else
    res_min = 1;
  printf("%d %d\n", res_min, res_max);
}
