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