#include <bits/stdc++.h>
using namespace std;
static const int MAXN = 16;
bool vis[MAXN];
int Judge(int x) {
  if (1 <= x && x <= 399) return 1;
  if (400 <= x && x <= 799) return 2;
  if (800 <= x && x <= 1199) return 3;
  if (2000 <= x && x <= 1599) return 4;
  if (1600 <= x && x <= 1999) return 5;
  if (2000 <= x && x <= 2399) return 6;
  if (2400 <= x && x <= 2799) return 7;
  if (2800 <= x && x <= 3199) return 8;
  return 9;
}
int n;
int dif;
int big;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    int a;
    scanf("%d", &a);
    a = Judge(a);
    if (a == 9)
      ++big;
    else {
      if (!vis[a]) {
        ++dif;
        vis[a] = 1;
      }
    }
  }
  if (dif == 0)
    printf("1");
  else
    printf("%d", dif);
  printf(" ");
  if (dif == 8 || dif + big >= 8)
    printf("8");
  else {
    printf("%d", dif + big);
  }
}
