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