#include <bits/stdc++.h>
using namespace std;
int getint() {
  int n;
  scanf("%d", &n);
  return n;
}
int main(void) {
  int N = getint();
  int arr[8] = {};
  int red = 0;
  for (int i = 0; i < N; i++) {
    int x = getint();
    arr[min(7, x / 400)] = 1;
    if (x >= 3200) {
      red += 1;
    }
  }
  int c = count(arr, arr + 8, 1);
  cout << max(c, 1) << " " << min(c + red, 8) << endl;
  return 0;
}
