#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> col(10, 0);
  while (N--) {
    int a;
    cin >> a;
    col[min(8, a / 400)]++;
  }
  int mi = 0;
  for (int i = 0; i <= 7; i++) {
    if (col[i] != 0) mi++;
  }
  cout << min(1, mi) << ' ' << mi + col[8] << endl;
}
