#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, mymin = 0, mymax;
  int rate[9] = {0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    int p;
    if (a <= 399)
      p = 0;
    else if (a <= 799)
      p = 1;
    else if (a <= 1199)
      p = 2;
    else if (a <= 1599)
      p = 3;
    else if (a <= 1999)
      p = 4;
    else if (a <= 2399)
      p = 5;
    else if (a <= 2799)
      p = 6;
    else if (a <= 3199)
      p = 7;
    else
      p = 8;
    if (p != 8 && rate[p] == 0) mymin++;
    rate[p]++;
  }
  mymax = mymin + rate[8];
  if (mymax > 8) mymax = 8;
  if (mymin == 0 && rate[8]) mymin = 1;
  cout << mymin << " " << mymax << endl;
  return 0;
}
