#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a[5000];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  sort(a, a + N);
  int res[10];
  for (int i = 0; i < N; i++) {
    if (a[i] >= 1 && a[i] < 400) {
      res[0]++;
    } else if (a[i] >= 400 && a[i] < 800) {
      res[1]++;
    } else if (a[i] >= 800 && a[i] < 1200) {
      res[2]++;
    } else if (a[i] >= 1200 && a[i] < 1600) {
      res[3]++;
    } else if (a[i] >= 1600 && a[i] < 2000) {
      res[4]++;
    } else if (a[i] >= 2000 && a[i] < 2400) {
      res[5]++;
    } else if (a[i] >= 2400 && a[i] < 2800) {
      res[6]++;
    } else if (a[i] >= 2800 && a[i] < 3200) {
      res[7]++;
    } else if (a[i] >= 3200) {
      res[8]++;
    }
  }
  int totalmin = 0, totalmax = 0;
  for (int i = 0; i < 8; i++) {
    if (res[i] > 0) totalmin++;
  }
  if (totalmin = 0 && res[8] > 0) {
    totalmin = 1;
    totalmax = res[8];
  } else if (totalmin != 0 && res[8] > 0)
    totalmax = totalmin + res[8];
  else if (res[8] = 0)
    totalmax = totalmin;
  cout << totalmin << " " << totalmax << endl;
}
