#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> color(9);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    int b = a / 400;
    if (8 < b) {
      color[8]++;
    } else {
      color[b]++;
    }
  }
  int answer = 0;
  for (int i = 0; i < 9; i++) {
    if (color[i] != 0) {
      answer++;
    }
  }
  if (color[8] == 0) {
    cout << answer << " " << answer << endl;
  } else {
    cout << answer << " " << answer + color[8] - 1 << endl;
  }
}
