#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long int n, a[1000], color[10] = {}, min = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      color[8]++;
    } else if (a[i] >= 2800) {
      color[7]++;
    } else if (a[i] >= 2400) {
      color[6]++;
    } else if (a[i] >= 2000) {
      color[5]++;
    } else if (a[i] >= 1600) {
      color[4]++;
    } else if (a[i] >= 1200) {
      color[3]++;
    } else if (a[i] >= 800) {
      color[2]++;
    } else if (a[i] >= 400) {
      color[1]++;
    } else if (a[i] >= 0) {
      color[0]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      min++;
    }
  }
  cout << min << " " << min + color[8];
}
