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