#include <bits/stdc++.h>
using namespace std;
long long A(int n) {
  long long a = 1, b;
  for (int i = 1; i < n; i++) {
    a *= i;
    a %= 1000000007;
  }
  return a;
}
int main() {
  int n;
  cin >> n;
  int a[n];
  int min = 0, max = 0;
  int r[9] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      r[8]++;
    } else if (a[i] >= 2800) {
      r[7]++;
    } else if (a[i] >= 2400) {
      r[6]++;
    } else if (a[i] >= 2000) {
      r[5]++;
    } else if (a[i] >= 1600) {
      r[4]++;
    } else if (a[i] >= 1200) {
      r[3]++;
    } else if (a[i] >= 800) {
      r[2]++;
    } else if (a[i] >= 400) {
      r[1]++;
    } else if (a[i] >= 1) {
      r[0]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (r[i]) {
      min++;
    }
  }
  if (r[8] < (8 - min)) {
    max = r[8] + min;
  } else {
    max = 8;
  }
  cout << min << " " << max;
  printf("\n");
  return 0;
}
