#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (auto& ai : a) cin >> ai;
  int count_over_red = 0;
  vector<bool> colors(8, false);
  for (auto& ai : a) {
    if (ai >= 3200)
      ++count_over_red;
    else if (ai >= 2800)
      colors[7] = true;
    else if (ai >= 2400)
      colors[6] = true;
    else if (ai >= 2000)
      colors[5] = true;
    else if (ai >= 1600)
      colors[4] = true;
    else if (ai >= 1200)
      colors[3] = true;
    else if (ai >= 800)
      colors[2] = true;
    else if (ai >= 400)
      colors[1] = true;
    else
      colors[0] = true;
  }
  int count_colors = 0;
  for (int i = 0; i < colors.size(); ++i) {
    if (colors[i]) ++count_colors;
  }
  int min = count_colors;
  int max = count_colors + count_over_red;
  if (max > 8) max = 8;
  cout << min << " " << max << endl;
  return 0;
}
