#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) cin >> a[i];
  int col[9] = {};
  for (int i = 0; i < n; ++i) {
    int m = floor(a[i] / 400);
    if (m < 8) {
      col[m]++;
    } else {
      col[8]++;
    }
  }
  int min = 0;
  for (int i = 0; i < 8; ++i) {
    if (col[i] > 0) {
      min++;
    }
  }
  int max = min;
  if ((min + col[8]) > 8) {
    max = 8;
  } else if (min == 0) {
    min = 1;
    if (col[8] > 8) {
      max = 8;
    } else {
      max = col[8];
    }
  } else if ((min + col[8]) <= 8) {
    max += col[8];
  }
  cout << min << " " << max << endl;
  return 0;
}
