#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long INFLL = 0x3f3f3f3f3f3f3f3fLL;
inline long long read() {
  long long 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 maxn = 1e5 + 10;
int a[10];
int main() {
  int n, cnt = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (x >= 1 && x <= 399)
      a[1] = 1;
    else if (x >= 400 && x <= 799)
      a[2] = 1;
    else if (x >= 800 && x <= 1199)
      a[3] = 1;
    else if (x >= 1200 && x <= 1599)
      a[4] = 1;
    else if (x >= 1600 && x <= 1999)
      a[5] = 1;
    else if (x >= 2000 && x <= 2399)
      a[6] = 1;
    else if (x >= 2400 && x <= 2799)
      a[7] = 1;
    else if (x >= 2800 && x <= 3199)
      a[8] = 1;
    else
      cnt++;
  }
  int k = 0;
  for (int i = 1; i <= 8; i++)
    if (a[i] == 1) k++;
  int ansl, ansr;
  if (k == 0 && cnt != 0)
    ansl = ansr = min(8, cnt);
  else {
    ansl = k;
    ansr = min(8, cnt + k);
  }
  cout << ansl << " " << ansr << endl;
  return 0;
}
