#include <bits/stdc++.h>
using namespace std;
int N;
int a;
int colors[9];
int main() {
  int minv, maxv;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a >= 1 && a <= 399)
      colors[0] = 1;
    else if (a >= 400 && a <= 799)
      colors[1] = 1;
    else if (a >= 800 && a <= 1199)
      colors[2] = 1;
    else if (a >= 1200 && a <= 1599)
      colors[3] = 1;
    else if (a >= 1200 && a <= 1599)
      colors[3] = 1;
    else if (a >= 1600 && a <= 1999)
      colors[4] = 1;
    else if (a >= 2000 && a <= 2399)
      colors[5] = 1;
    else if (a >= 2400 && a <= 2799)
      colors[6] = 1;
    else if (a >= 2800 && a <= 3199)
      colors[7] = 1;
    else if (a >= 3200)
      colors[8] += 1;
  }
  minv = maxv = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i] != 0) {
      minv++;
      maxv++;
    }
  }
  cout << minv << " " << min(8, maxv + colors[8]);
  return 0;
}
