#include <bits/stdc++.h>
using namespace std;
template <class T>
using vv = vector<vector<T> >;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> acc(9, 0);
  int b;
  for (int(i) = (0); (i) < (n); ++(i)) {
    scanf("%d", &b);
    acc[min(8, b / 400)] += 1;
  }
  int mi = 0;
  int ma = 0;
  for (int(i) = (0); (i) < (7); ++(i)) {
    if (acc[i] > 0) {
      mi += 1;
    }
  }
  if (acc[7] > 0 || acc[8] > 0) {
    mi += 1;
  }
  for (int(i) = (0); (i) < (7); ++(i)) {
    if (acc[i] > 0) {
      ma += 1;
    } else if (acc[8] > 0) {
      ma += 1;
      acc[8] -= 1;
    }
  }
  if (acc[7] > 0 || acc[8] > 0) {
    ma += 1;
  }
  printf("%d %d\n", mi, ma);
  return 0;
}
