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