#include <bits/stdc++.h>
using namespace std;
int gray, brown, green, blue, red, yellow, orange, cyan;
int b[10009], c[10009];
int main() {
  int n, m, a[1009], mx = -9, mn = 999999, t = 0, d = 0, s = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > 0 && a[i] < 400) b[1]++;
    if (a[i] >= 400 && a[i] < 800) b[2]++;
    if (a[i] >= 800 && a[i] < 1200) b[3]++;
    if (a[i] >= 1200 && a[i] < 1600) b[4]++;
    if (a[i] >= 1600 && a[i] < 2000) b[5]++;
    if (a[i] >= 2000 && a[i] < 2400) b[6]++;
    if (a[i] >= 2400 && a[i] < 2800) b[7]++;
    if (a[i] >= 2800 && a[i] < 3200) b[8]++;
    if (a[i] >= 3200) c[t] = i, t++;
  }
  for (int i = 1; i <= 8; i++) {
    if (b[i] > 0) {
      d++;
    }
  }
  for (int i = 0; i < t; i++)
    if (c[i] > 0) s++;
  if (d == 0 && s != 0)
    cout << 1 << " " << 1 + s;
  else if (d + s > 8)
    cout << d << " " << 8;
  else
    cout << d << " " << d + s;
}
