#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, f = 0;
  cin >> n;
  int a[10000] = {0};
  for (int i = (0); i < (n); ++i) {
    int gomi;
    cin >> gomi;
    if (gomi >= 3200) {
      f++;
    }
    a[gomi / 400] += 1;
  }
  int g = 0;
  for (int i = (0); i < (8); ++i) {
    if (a[i]) {
      g++;
    }
  }
  if (g) {
    cout << g << " ";
  } else {
    cout << 1 << " ";
  }
  if (f + g >= 8) {
    cout << 8 << endl;
  } else {
    cout << f + g << endl;
  }
  return 0;
}
