#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main() {
  int n;
  cin >> n;
  int a[n];
  int col[9] = {0};
  for (int i = 0; i < (int)(n); i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      col[8]++;
    } else {
      col[a[i] / 400]++;
    }
  }
  int ansmin = 0, ansmax = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (col[i] > 0) {
      ansmin++;
      ansmax++;
    }
  }
  if (col[8] > 0) {
    if (ansmax + col[8] <= 8) {
      ansmax += col[8];
    } else {
      ansmax = 8;
    }
  }
  cout << ansmin << " " << ansmax << endl;
}
