#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) cin >> a[i];
  int color[9] = {};
  for (int i = 0; i < n; ++i) {
    if (a[i] >= 1 && a[i] <= 399) {
      color[0] = 1;
    }
    if (a[i] >= 400 && a[i] <= 799) {
      color[1] = 1;
    }
    if (a[i] >= 800 && a[i] <= 1199) {
      color[2] = 1;
    }
    if (a[i] >= 1200 && a[i] <= 1599) {
      color[3] = 1;
    }
    if (a[i] >= 1600 && a[i] <= 1999) {
      color[4] = 1;
    }
    if (a[i] >= 2000 && a[i] <= 2399) {
      color[5] = 1;
    }
    if (a[i] >= 2400 && a[i] <= 2799) {
      color[6] = 1;
    }
    if (a[i] >= 2800 && a[i] <= 3199) {
      color[7] = 1;
    }
    if (a[i] >= 3200) {
      color[8]++;
    }
  }
  int min = 0;
  for (int i = 0; i <= 7; ++i) {
    if (color[i] == 1) min++;
  }
  int max = 0;
  if (color[8] != 0)
    max = min + color[8];
  else
    max = min;
  cout << min << " " << max << '\n';
  return 0;
}
