#include <bits/stdc++.h>
using namespace std;
int buf[50];
inline void write(int x) {
  int p = 0;
  do {
    buf[p++] = x % 10;
    x /= 10;
  } while (x > 0);
  for (int i = p - 1; i >= 0; i--) putchar('0' + buf[i]);
}
long long int read_int() {
  char r;
  bool start = false, neg = false;
  long long int ret = 0;
  while (true) {
    r = getchar();
    if ((r - '0' < 0 || r - '0' > 9) && r != '-' && !start) {
      continue;
    }
    if ((r - '0' < 0 || r - '0' > 9) && r != '-' && start) {
      break;
    }
    if (start) ret *= 10;
    start = true;
    if (r == '-')
      neg = true;
    else
      ret += r - '0';
  }
  if (!neg)
    return ret;
  else
    return -ret;
}
int main() {
  int n;
  int a[20020];
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int mx = 0, mi = 0;
  int num[20020] = {0};
  for (int i = 0; i < n; i++) {
    if (a[i] >= 1 && a[i] <= 399)
      num[1] = 1;
    else if (a[i] >= 400 && a[i] <= 799)
      num[2] = 1;
    else if (a[i] >= 800 && a[i] <= 1199)
      num[3] = 1;
    else if (a[i] >= 1200 && a[i] <= 1599)
      num[4] = 1;
    else if (a[i] >= 1600 && a[i] <= 1999)
      num[5] = 1;
    else if (a[i] >= 2000 && a[i] <= 2399)
      num[6] = 1;
    else if (a[i] >= 2400 && a[i] <= 2799)
      num[7] = 1;
    else if (a[i] >= 2800 && a[i] <= 3199)
      num[8] = 1;
    else
      mx++;
  }
  for (int i = 1; i <= 8; i++)
    if (num[i]) mi++;
  cout << mi << " " << mi + mx;
}
