#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;
    color[(a / 400)]++;
  }
  int answer = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      answer++;
    }
  }
  cout << answer << " " << answer + color[8] << endl;
}
