#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int c[9];
  memset(c, 0, sizeof c);
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    c[min(a / 400, 8)]++;
  }
  int mn = 0;
  for (int i = 0; i < 8; i++) mn += (c[i] > 0);
  printf("%d %d\n", mn, mn + c[8]);
  return 0;
}
