#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
  int N;
  scanf("%d", &N);
  getchar();
  ;
  vector<int> A(N);
  for (int i = 0; i < N; ++i) {
    scanf("%d", &(A[i]));
    getchar();
  };
  int top_count = 0;
  array<char, 8> flag;
  flag.fill(false);
  for (auto& a : A) {
    if (3200 <= a) {
      ++top_count;
    } else {
      flag[a / 400] = true;
    }
  }
  int count = 0;
  for (auto& f : flag) {
    if (f) ++count;
  }
  printf("%d %d\n", count, min(count + top_count, 8));
}
