#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int input;
  int color[9] = {};
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> input;
    color[input / 400]++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      min++;
      max++;
    }
  }
  max = (max + color[8]) % 9;
  cout << min << " " << max;
  return 0;
}
