#include <bits/stdc++.h>
using namespace std;
template <typename T, size_t N>
constexpr size_t NELEMS(T (&)[N]) {
  return N;
}
int N;
int bin[8] = {};
int wild = 0;
int main() {
  cin >> N;
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    if (1 <= a && a <= 399)
      ++bin[0];
    else if (400 <= a && a <= 799) {
      ++bin[1];
    } else if (800 <= a && a <= 1199) {
      ++bin[2];
    } else if (1200 <= a && a <= 1599) {
      ++bin[3];
    } else if (1600 <= a && a <= 1999) {
      ++bin[4];
    } else if (2000 <= a && a <= 2399) {
      ++bin[5];
    } else if (2400 <= a && a <= 2799) {
      ++bin[6];
    } else if (2800 <= a && a <= 3199) {
      ++bin[7];
    } else {
      ++wild;
    }
  }
  int kmin = 0;
  for (int i = (0); i < (8); ++i) {
    if (bin[i]) ++kmin;
  }
  int kmax = kmin + wild;
  cout << kmin << " " << kmax << "\n";
  return 0;
}
