#include <bits/stdc++.h>
using namespace std;
const int maxn = 100;
int n, cnt, ans;
int a[maxn];
int col[maxn];
long long read() {
  long long s = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    s = s * 10 + ch - '0';
    ch = getchar();
  }
  return s * f;
}
int main() {
  n = read(), cnt = 0, ans = 0;
  for (int i = 1; i <= n; i++) {
    a[i] = read();
    if (a[i] >= 1 && a[i] <= 399)
      col[1]++;
    else if (a[i] >= 400 && a[i] <= 799)
      col[2]++;
    else if (a[i] >= 800 && a[i] <= 1199)
      col[3]++;
    else if (a[i] >= 1200 && a[i] <= 1599)
      col[4]++;
    else if (a[i] >= 1600 && a[i] <= 1999)
      col[5]++;
    else if (a[i] >= 2000 && a[i] <= 2399)
      col[6]++;
    else if (a[i] >= 2400 && a[i] <= 2799)
      col[7]++;
    else if (a[i] >= 2800 && a[i] <= 3199)
      col[8]++;
    else
      cnt++;
  }
  for (int i = 1; i <= 8; i++)
    if (col[i] != 0) ans++;
  printf("%d %d\n", ans, ans + cnt);
  return 0;
}
