#include <bits/stdc++.h>
using namespace std;
const int inf = 1000000001;
const long long INF = 1e16;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
  int n, i;
  cin >> n;
  vector<int> a(n);
  vector<int> color(9, 0);
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 0; i < n; i++) {
    color[a[i] / 400]++;
  }
  int m = 0, M = 0;
  for (i = 0; i < 8; i++) {
    if (color[i]) {
      m++;
      M++;
    }
  }
  if (color[8]) {
    M = min(8, M + color[8]);
  }
  cout << m << " " << M << endl;
}
