#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, N, colour[9] = {}, ans;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    colour[min(a / 400, 8)]++;
  }
  for (int i = 0; i < 8; i++) {
    if (colour[i] > 0) {
      ans += 1;
    }
  }
  cout << max(ans, 1) << " " << min(ans + colour[8], 8) << endl;
}
