#include <bits/stdc++.h>
using namespace std;
long long a, n, m, k, s = 0, p, ar[10001], ar1[10001], i, j, c = 0, r, t;
int main() {
  cin >> a;
  long long mn = 0, mx = 0;
  for (i = 0; i < a; i++) cin >> ar1[i];
  for (i = 0; i < a; i++) {
    if (ar1[i] >= 1 && ar1[i] <= 399) ar[0]++;
    if (ar1[i] >= 400 && ar1[i] <= 799) ar[1]++;
    if (ar1[i] >= 800 && ar1[i] <= 1199) ar[2]++;
    if (ar1[i] >= 1200 && ar1[i] <= 1599) ar[3]++;
    if (ar1[i] >= 1600 && ar1[i] <= 1999) ar[4]++;
    if (ar1[i] >= 2000 && ar1[i] <= 2399) ar[5]++;
    if (ar1[i] >= 2400 && ar1[i] <= 2799) ar[6]++;
    if (ar1[i] >= 2800 && ar1[i] <= 3199) ar[7]++;
    if (ar1[i] >= 3200) ar[8]++;
  }
  for (i = 0; i < 8; i++) {
    if (ar[i] > 1) ar[i] = 1;
    mn = ar[i] + mn;
  }
  if (ar[8] > 1 || ar[8] == 0)
    mx = ar[8] + mn;
  else {
    mn = ar[8] + 1;
    mx = mn + mx;
  }
  if (mn == 0) mn++;
  cout << mn << " " << mx;
}
