#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int a[n], i;
  for (i = 0; i < n; ++i) scanf("%d", &a[i]);
  int h[8], cnt = 0;
  for (i = 0; i < 8; ++i) h[i] = 0;
  if (n == 1) {
    printf("0 0");
  } else {
    for (i = 0; i < n; ++i) {
      if (a[i] >= 1 && a[i] <= 399)
        h[0]++;
      else if (a[i] >= 400 && a[i] <= 799)
        h[1]++;
      else if (a[i] >= 800 && a[i] <= 1199)
        h[2]++;
      else if (a[i] >= 1200 && a[i] <= 1599)
        h[3]++;
      else if (a[i] >= 1600 && a[i] <= 1999)
        h[4]++;
      else if (a[i] >= 2000 && a[i] <= 2399)
        h[5]++;
      else if (a[i] >= 2400 && a[i] <= 2799)
        h[6]++;
      else if (a[i] >= 2800 && a[i] <= 3199)
        h[7]++;
      else
        cnt++;
    }
    int cnt1 = 0;
    for (i = 0; i < 8; ++i) {
      if (h[i] > 0) cnt1++;
    }
    printf("%d %d", cnt1, cnt1 + cnt);
  }
  return 0;
}
