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