#include <bits/stdc++.h>
using namespace std;
int color[10];
int main() {
  int N;
  cin >> N;
  memset(color, 0, sizeof(color));
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    if (r < 400)
      color[0]++;
    else if (r < 800)
      color[1]++;
    else if (r < 1200)
      color[2]++;
    else if (r < 1600)
      color[3]++;
    else if (r < 2000)
      color[4]++;
    else if (r < 2400)
      color[5]++;
    else if (r < 2800)
      color[6]++;
    else if (r < 3200)
      color[7]++;
    else
      color[8]++;
  }
  int a = 0, b = color[8];
  for (int i = 0; i < 8; i++) {
    if (color[i]) a++;
  }
  int minv, maxv;
  minv = max(1, a);
  maxv = min(8, a + b);
  cout << minv << " " << maxv << endl;
  ;
}
