#include <bits/stdc++.h>
using namespace std;
int a[110];
int boje[10];
int main() {
  int n;
  cin >> n;
  int dod = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399) {
      boje[0]++;
    }
    if (a[i] >= 400 && a[i] <= 799) {
      boje[1]++;
    }
    if (a[i] >= 800 && a[i] <= 1199) {
      boje[2]++;
    }
    if (a[i] >= 1200 && a[i] <= 1599) {
      boje[3]++;
    }
    if (a[i] >= 1600 && a[i] <= 1999) {
      boje[4]++;
    }
    if (a[i] >= 2000 && a[i] <= 2399) {
      boje[5]++;
    }
    if (a[i] >= 2400 && a[i] <= 2799) {
      boje[6]++;
    }
    if (a[i] >= 2800 && a[i] <= 3199) {
      boje[7]++;
    }
    if (a[i] >= 3200) {
      dod++;
    }
  }
  int prazan = 0;
  for (int i = 0; i < 8; i++) {
    if (boje[i] == 0) {
      prazan++;
    }
  }
  int maxi = 0, mini = 0;
  if (dod > prazan) {
    maxi = 8;
  } else {
    maxi = (8 - prazan) + dod;
  }
  mini = (8 - prazan);
  cout << mini << " " << maxi << endl;
  return 0;
}
