#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[100];
  for (int i = 0; i < (int)(n); ++i) cin >> a[i];
  sort(a, a + n);
  for (int i = 0; i < (int)(n); ++i) a[i] /= 400;
  int color[9];
  for (int i = 0; i < (int)(9); ++i) color[i] = 0;
  for (int i = 0; i < (int)(n); ++i) {
    if (a[i] < 8)
      ++color[a[i]];
    else
      ++color[8];
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); ++i)
    if (color[i] > 0) ++ans;
  printf("%d %d\n", ans, ans + color[8]);
}
