#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:1024000000,1024000000")
int Scan() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
const int N = 105;
int vis[15];
int main() {
  int n, x, sum = 0, ans1 = 0, ans2 = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &x);
    int t = (x + 400) / 400;
    if (t <= 8)
      ++vis[t];
    else
      ++sum;
  }
  for (int i = 1; i <= 8; ++i)
    if (vis[i]) ++ans1;
  if (ans1 == 0) {
    ans1 = sum >= 8 ? 8 : sum;
    ans2 = 1;
  } else {
    ans2 = ans1;
    ans1 = (sum + ans1 >= 8 ? 8 : sum + ans1);
  }
  printf("%d %d\n", ans2, ans1);
  return 0;
}
