#include <bits/stdc++.h>
using namespace std;
const long long int MOD = pow(10, 9) + 7;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  vector<int> color(9);
  for (int i = 0; i < N; i++) {
    color[min(A[i] / 400, 8)]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) cnt++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    sum += color[i];
  }
  if (color[8]) {
    if (sum) {
      cout << cnt << ' ' << min(cnt + color[8], 8) << endl;
    } else {
      cout << 1 << ' ' << min(color[8], 8) << endl;
    }
  } else {
    cout << cnt << ' ' << cnt << endl;
  }
}
