#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cont = 0;
  int b[105];
  memset(b, 0, sizeof(b));
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399)
      b[0] = 1;
    else if (a >= 400 && a <= 799)
      b[1] = 1;
    else if (a >= 800 && a <= 1199)
      b[2] = 1;
    else if (a >= 1200 && a <= 1599)
      b[3] = 1;
    else if (a >= 1600 && a <= 1999)
      b[4] = 1;
    else if (a >= 2000 && a <= 2399)
      b[5] = 1;
    else if (a >= 2400 && a <= 2799)
      b[6] = 1;
    else if (a >= 2800 && a <= 3199)
      b[7] = 1;
    else
      cont++;
  }
  int re = 0;
  for (int i = 0; i < 8; i++) re += b[i];
  cout << re << " " << min(cont + re, 8) << endl;
}
