#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  bool r[8];
  int s = 0;
  memset(r, false, sizeof(r));
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    int val;
    scanf("%d", &val);
    if (val > 3199)
      s++;
    else if (val > 2799)
      r[7] = true;
    else if (val > 2399)
      r[6] = true;
    else if (val > 1999)
      r[5] = true;
    else if (val > 1599)
      r[4] = true;
    else if (val > 1199)
      r[3] = true;
    else if (val > 799)
      r[2] = true;
    else if (val > 399)
      r[1] = true;
    else
      r[0] = true;
  }
  int sum = 0, full = 0;
  for (int i = 0; i < 8; i++)
    if (!r[i])
      sum++;
    else
      full++;
  printf("%d %d\n", max(full, 1), full + min(sum, s));
  return 0;
}
