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