#include <bits/stdc++.h>
using namespace std;
int a[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int getC(int x) {
  int i = 0;
  while (i < 9) {
    if (a[i] > x) return i;
    i++;
  }
  return i;
}
int b[9];
int main() {
  int N;
  int x;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> x;
    b[getC(x)]++;
  }
  int mi = 0, mx = 0;
  for (int i = 0; i < 9; ++i) {
    if (b[i]) ++mi, ++mx;
  }
  mx += b[9];
  cout << max(mi, 1) << " " << min(mx, 8) << endl;
}
