#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int ans;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int z = 0, x = 0, c = 0, v = 0, b = 0, j = 0, m = 0, p = 0, q = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] <= 399) {
      z = 1;
    } else if (a[i] <= 799) {
      x = 1;
    } else if (a[i] <= 1199) {
      c = 1;
    } else if (a[i] <= 1599) {
      v = 1;
    } else if (a[i] <= 1999) {
      b = 1;
    } else if (a[i] <= 2399) {
      j = 1;
    } else if (a[i] <= 2799) {
      m = 1;
    } else if (a[i] <= 3199) {
      p = 1;
    } else if (a[i] >= 3200) {
      q++;
    }
  }
  ans = z + x + c + v + b + j + m + p;
  int minn = ans;
  if (ans == 0) {
    minn = 1;
  }
  cout << minn << " ";
  q = min(q, 8 - ans);
  cout << ans + q << endl;
}
