#include <bits/stdc++.h>
using namespace std;
long long int n, a, ba[100010], x, y, aa[100];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> ba[i];
    aa[ba[i] / 400]++;
  }
  for (int i = 0; i < 30; i++) {
    if (i < 8) {
      x += (aa[i] != 0);
    } else
      y += aa[i];
  }
  cout << x << " " << x + y << endl;
}
