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