#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int color[9] = {0};
  for (int i = 0; i < N; i++) {
    if (a[i] < 3200) {
      color[a[i] / 400]++;
    } else {
      color[8]++;
    }
  }
  int max = 0, min = 0;
  for (int i = 0; i < 9; i++) {
    if (i == 8) {
      max += color[8];
    } else if (color[i] != 0) {
      max++;
      min++;
    }
  }
  cout << min << " " << max << endl;
}
