#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; ++i) cin >> a[i];
  int gray = 0;
  int brown = 0;
  int green = 0;
  int cyan = 0;
  int blue = 0;
  int yellow = 0;
  int orange = 0;
  int red = 0;
  int higher = 0;
  for (int i = 0; i < N; ++i) {
    if (a[i] <= 399)
      gray = 1;
    else if (a[i] <= 799)
      brown = 1;
    else if (a[i] <= 1199)
      green = 1;
    else if (a[i] <= 1599)
      cyan = 1;
    else if (a[i] <= 1999)
      blue = 1;
    else if (a[i] <= 2399)
      yellow = 1;
    else if (a[i] <= 2799)
      orange = 1;
    else if (a[i] <= 3199)
      red = 1;
    else
      ++higher;
  }
  int ret = gray + brown + green + cyan + blue + yellow + orange + red;
  cout << ret << " " << ret + higher << endl;
  return 0;
}
