#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  int a[N];
  for (int i = 0; i < N; i++) scanf("%d", &a[i]);
  bool col[8];
  fill(col, col + 8, false);
  sort(a, a + N);
  int minans = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] >= 3200) {
      for (int j = 0; j < 8; j++)
        if (!col[j]) {
          col[j] = true;
          break;
        }
      if (minans == 0) minans++;
      continue;
    }
    if (!col[a[i] / 400]) minans++;
    col[a[i] / 400] = true;
  }
  int maxans = 0;
  for (int i = 0; i < 8; i++)
    if (col[i]) maxans++;
  printf("%d %d", minans, maxans);
}
