#include <bits/stdc++.h>
using namespace std;
bool color[8];
int main() {
  int n;
  scanf("%d", &n);
  int grtr = 0;
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    if (x >= 1 && x <= 399 && !color[0])
      color[0] = 1;
    else if (x >= 400 && x <= 799 && !color[1])
      color[1] = 1;
    else if (x >= 800 && x <= 1199 && !color[2])
      color[2] = 1;
    else if (x >= 1200 && x <= 1599 && !color[3])
      color[3] = 1;
    else if (x >= 1600 && x <= 1999 && !color[4])
      color[4] = 1;
    else if (x >= 2000 && x <= 2399 && !color[5])
      color[5] = 1;
    else if (x >= 2400 && x <= 2799 && !color[6])
      color[6] = 1;
    else if (x >= 2800 && x <= 3199 && !color[7])
      color[7] = 1;
    else if (x >= 3200)
      grtr++;
  }
  int mn = 0;
  int mx = 0;
  if (grtr == n) mn = 1;
  for (int i = 0; i < 8; i++) {
    if (color[i]) mn++;
    if (!color[i] && grtr > 0) {
      color[i] = 1;
      grtr--;
    }
  }
  for (int i = 0; i < 8; i++)
    if (color[i]) mx++;
  cout << mn << " " << mx;
}
