#include <bits/stdc++.h>
using namespace std;
int N;
int main(void) {
  scanf("%d", &N);
  vector<int> v(8, 0);
  int w = 0;
  for (int i = 0; i < N; ++i) {
    int a;
    scanf("%d", &a);
    if (1 <= a && a <= 399)
      ++v[0];
    else if (400 <= a && a <= 799)
      ++v[1];
    else if (800 <= a && a <= 1199)
      ++v[2];
    else if (1200 <= a && a <= 1599)
      ++v[3];
    else if (1600 <= a && a <= 1999)
      ++v[4];
    else if (2000 <= a && a <= 2399)
      ++v[5];
    else if (2400 <= a && a <= 2799)
      ++v[6];
    else if (2800 <= a && a <= 3199)
      ++v[7];
    else
      ++w;
  }
  int cnt = 0;
  for (int i = 0; i < v.size(); ++i)
    if (v[i]) ++cnt;
  if (w) {
    if (cnt)
      printf("%d %d\n", cnt, (w + cnt > 8) ? 8 : cnt + w);
    else
      printf("%d %d\n", 1, (w > 8) ? 8 : w);
  } else
    printf("%d %d\n", cnt, cnt);
  return 0;
}
