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