#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> dic(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399) {
      dic[0]++;
    } else if (a >= 400 && a <= 799) {
      dic[1]++;
    } else if (a >= 800 && a <= 1199) {
      dic[2]++;
    } else if (a >= 1200 && a <= 1599) {
      dic[3]++;
    } else if (a >= 1600 && a <= 1999) {
      dic[4]++;
    } else if (a >= 2000 && a <= 2399) {
      dic[5]++;
    } else if (a >= 2400 && a <= 2799) {
      dic[6]++;
    } else if (a >= 2800 && a <= 3199) {
      dic[7]++;
    } else {
      dic[8]++;
    }
  }
  int ma = 0, mi = 0;
  for (int i = 0; i < 8; i++) {
    if (dic[i] > 0) {
      ma++;
      mi++;
    }
  }
  if (dic[8] == n) {
    mi = 1;
    ma = min(8, n);
  } else {
    ma = min(8, ma + dic[8]);
  }
  cout << mi << " " << mi << endl;
}
