#include <bits/stdc++.h>
using namespace std;
bool colors[8] = {false};
int strong = 0;
int main() {
  int N, a;
  int cmin = 0, cmax;
  cin >> N;
  for (int i = 0; i < (N); i++) {
    cin >> a;
    if (a <= 399)
      colors[0] = true;
    else if (a <= 799)
      colors[1] = true;
    else if (a <= 1199)
      colors[2] = true;
    else if (a <= 1599)
      colors[3] = true;
    else if (a <= 1999)
      colors[4] = true;
    else if (a <= 2399)
      colors[5] = true;
    else if (a <= 2799)
      colors[6] = true;
    else if (a <= 3199)
      colors[7] = true;
    else
      strong++;
  }
  for (int i = 0; i < (8); i++) {
    if (colors[i]) cmin++;
  }
  cmin = max(cmin, 1);
  cmax = cmin + strong;
  cout << cmin << ' ' << cmax << endl;
  return 0;
}
