#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> ma;
  for (int i = 0; i < (int)(N); i++) {
    int a;
    cin >> a;
    int x;
    if (a <= 399) {
      ma[1]++;
    } else if (a <= 799) {
      ma[2]++;
    } else if (a <= 1199) {
      ma[3]++;
    } else if (a <= 1599) {
      ma[4]++;
    } else if (a <= 1999) {
      ma[5]++;
    } else if (a <= 2399) {
      ma[6]++;
    } else if (a <= 2799) {
      ma[7]++;
    } else if (a <= 3199) {
      ma[8]++;
    } else {
      ma[9]++;
    }
  }
  int min = ma.size();
  int max = ma.size();
  if (ma.count(9)) {
    min--;
    max += ma[9] - 1;
  }
  if (max > 9) {
    max = 9;
  }
  cout << min << " " << max << endl;
  return 0;
}
