#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const long long INF = (long long)1e18;
const double eps = 1e-9;
const double pi = acos(-1.0);
const int mod = (int)1e9 + 7;
int n;
int a[1100];
int ok[10];
void check(int x) {
  if (x >= 1 && x <= 399) {
    ok[0] = 1;
  } else if (x >= 400 && x <= 799) {
    ok[1] = 1;
  } else if (x >= 800 && x <= 1199) {
    ok[2] = 1;
  } else if (x >= 1200 && x <= 1599) {
    ok[3] = 1;
  } else if (x >= 1600 && x <= 1999) {
    ok[4] = 1;
  } else if (x >= 2000 && x <= 2399) {
    ok[5] = 1;
  } else if (x >= 2400 && x <= 2799) {
    ok[6] = 1;
  } else if (x >= 2800 && x <= 3199) {
    ok[7] = 1;
  } else {
    ok[8]++;
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) scanf("%d", &a[i]);
  for (int i = 0; i < n; ++i) {
    check(a[i]);
  }
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    if (ok[i]) cnt++;
  }
  printf("%d ", cnt);
  cnt += ok[8];
  printf("%d\n", cnt);
  return 0;
}
