#include <bits/stdc++.h>
using namespace std;
int k[10], t, N, a;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (1 <= a && a <= 399)
      k[0]++;
    else if (400 <= a && a <= 799)
      k[1]++;
    else if (800 <= a && a <= 1199)
      k[2]++;
    else if (1200 <= a && a <= 1599)
      k[3]++;
    else if (1600 <= a && a <= 1999)
      k[4]++;
    else if (2000 <= a && a <= 2399)
      k[5]++;
    else if (2400 <= a && a <= 2799)
      k[6]++;
    else if (2800 <= a && a <= 3199)
      k[7]++;
    else if (3200 <= a)
      t++;
  }
  int x = 0;
  for (int i = 0; i < 8; i++)
    if (k[i] > 0) x++;
  int minv, maxv;
  maxv = min(x + t, 8);
  if (x == 0)
    minv = 1;
  else
    minv = x;
  printf("%d %d", minv, maxv);
  return 0;
}
