#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  bool vals[8];
  fill(begin(vals), end(vals), false);
  int max = 0, min = 0;
  for (int i = 0; i < N; i++) {
    int cur;
    scanf("%d", &cur);
    if (cur >= 3200) {
      max++;
    } else if (cur >= 2800) {
      if (!vals[7]) {
        min++;
      }
      vals[7] = true;
    } else if (cur >= 2400) {
      if (!vals[6]) {
        min++;
      }
      vals[6] = true;
    } else if (cur >= 2000) {
      if (!vals[5]) {
        min++;
      }
      vals[5] = true;
    } else if (cur >= 1600) {
      if (!vals[4]) {
        min++;
      }
      vals[4] = true;
    } else if (cur >= 1200) {
      if (!vals[3]) {
        min++;
      }
      vals[3] = true;
    } else if (cur >= 800) {
      if (!vals[2]) {
        min++;
      }
      vals[2] = true;
    } else if (cur >= 400) {
      if (!vals[1]) {
        min++;
      }
      vals[1] = true;
    } else {
      if (!vals[0]) {
        min++;
      }
      vals[0] = true;
    }
  }
  max += min;
  printf("%d %d", min, max);
  return 0;
}
