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