#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[100];
  int min = 0;
  int max = 0;
  int over = 0;
  bool color[8] = {};
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  for (int i = 0; i < n; ++i) {
    if ((a[i] / 400) < 8)
      color[a[i] / 400] = true;
    else
      over++;
  }
  for (int i = 0; i < 8; ++i) {
    if (color[i]) min++;
  }
  max = min + over;
  cout << min << " " << max << endl;
}
