#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  cin >> N;
  int a[9] = {0};
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    int col = x / 400;
    if (x > 3199) {
      a[8]++;
    } else
      a[col]++;
  }
  int Min = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) Min++;
  }
  int Max = a[8] + Min;
  cout << Min << " " << Max << endl;
  return 0;
}
