#include <bits/stdc++.h>
using namespace std;
long long N;
long long col[9] = {0};
signed main() {
  cin >> N;
  for (long long(i) = 0; (i) < (N); (i)++) {
    long long r;
    cin >> r;
    long long c = r / 400;
    if (c >= 8) c = 8;
    col[c]++;
  }
  long long cnt = 0;
  for (long long(i) = 0; (i) < (8); (i)++) {
    if (col[i] > 0) {
      cnt++;
    }
  }
  cout << cnt << " " << (cnt + col[8]) << endl;
}
