#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int counts[9] = {0};
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    if (temp < 400)
      counts[0]++;
    else if (temp < 800)
      counts[1]++;
    else if (temp < 1200)
      counts[2]++;
    else if (temp < 1600)
      counts[3]++;
    else if (temp < 2000)
      counts[4]++;
    else if (temp < 2400)
      counts[5]++;
    else if (temp < 2800)
      counts[6]++;
    else if (temp < 3200)
      counts[7]++;
    else
      counts[8]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (counts[i] > 0) {
      count++;
    }
  }
  int min, max;
  if (counts[8] > 0) {
    if (count >= counts[8]) {
      min = count;
    } else {
      min = count + (counts[8] - count);
    }
    max = std::min(8, count + counts[8]);
  } else {
    min = count;
    max = count;
  }
  cout << min << " " << max << endl;
  return 0;
}
