#include <bits/stdc++.h>
using namespace std;
int min(int a, int b) { return a < b ? a : b; }
int max(int a, int b) { return a > b ? a : b; }
int main() {
  int a[10] = {0};
  int N;
  scanf("%d", &N);
  int b = 0;
  for (int i = 0; i < N; i++) {
    int num;
    scanf("%d", &num);
    if (num / 400 < 8)
      a[num / 400]++;
    else
      b++;
  }
  int c = 0;
  for (int i = 0; i < 8; i++)
    if (a[i] != 0) c++;
  int minn, maxx;
  maxx = min(c + b, 8);
  if (c == 0 && b != 0) c = 1;
  printf("%d %d", c, maxx);
  return 0;
}
