#include <bits/stdc++.h>
using namespace std;
int tong[10];
int main() {
  int n, i, g;
  memset(tong, 0, sizeof(tong));
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> g;
    if (g >= 1 && g < 400)
      tong[0]++;
    else if (g >= 400 && g < 800)
      tong[1]++;
    else if (g >= 800 && g < 1200)
      tong[2]++;
    else if (g >= 1200 && g < 1600)
      tong[3]++;
    else if (g > 1600 && g < 2000)
      tong[4]++;
    else if (g >= 2000 && g < 2400)
      tong[5]++;
    else if (g >= 2400 && g < 2800)
      tong[6]++;
    else if (g >= 2800 && g < 3200)
      tong[7]++;
    else
      tong[8]++;
  }
  int sum = 0;
  for (i = 0; i <= 7; i++)
    if (tong[i]) sum++;
  int min = sum, max = sum;
  if (7 - sum < tong[8])
    max = 7;
  else
    max = sum + tong[8];
  printf("%d %d\n", min, max);
  return 0;
}
