#include <bits/stdc++.h>
using namespace std;
int arr[200];
int fix[10];
void func(int x) {
  int w = x / 400;
  fix[w]++;
}
int main(int argc, char const *argv[]) {
  int n;
  scanf("%d", &n);
  int nut = 0;
  for (int i = 0; i < n; ++i) {
    scanf("%d", &arr[i]);
    if (arr[i] < 3200)
      func(arr[i]);
    else
      nut++;
  }
  if (nut == n) {
    printf("1 %d\n", min(8, n));
    return 0;
  }
  int mi, ma;
  mi = 0;
  for (int i = 0; i < 8; ++i) {
    if (fix[i] > 0) ++mi;
  }
  cout << mi << ' ';
  for (int i = 0; i < 8; ++i) {
    if (fix[i] == 0 && nut) {
      ++mi;
      nut--;
    }
  }
  cout << mi << '\n';
  return 0;
}
