#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  bool c[13] = {};
  int count = 0;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    a[i] /= 400;
    c[a[i]] = 1;
    if (a[i] >= 8) count++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) min += c[i];
  max = min + count;
  cout << min << " " << max << endl;
}
