#include <bits/stdc++.h>
using namespace std;
int N;
int Count[9], A[101];
int Ansa, Ansb;
int main() {
  scanf("%d", &N);
  for (int i = 1; i <= N; i++) {
    scanf("%d", &A[i]);
    if (A[i] < 400)
      Count[0]++;
    else if (A[i] < 800)
      Count[1]++;
    else if (A[i] < 1200)
      Count[2]++;
    else if (A[i] < 1600)
      Count[3]++;
    else if (A[i] < 2000)
      Count[4]++;
    else if (A[i] < 2400)
      Count[5]++;
    else if (A[i] < 2800)
      Count[6]++;
    else if (A[i] < 3200)
      Count[7]++;
    else
      Count[8]++;
  }
  for (int i = 0; i <= 7; i++) {
    if (Count[i]) {
      Ansa++;
      Ansb++;
    }
  }
  printf("%d %d\n", max(Ansa, 1), min(Ansb + Count[8], 8));
  return 0;
}
