#include <bits/stdc++.h>
using namespace std;
struct omt {
  omt() {
    ios::sync_with_stdio(false);
    cin.tie(0);
  }
} star;
int main() {
  int n;
  cin >> n;
  int A[9] = {};
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (1 <= tmp and tmp <= 399)
      A[0]++;
    else if (400 <= tmp and tmp <= 799)
      A[1]++;
    else if (800 <= tmp and tmp <= 1199)
      A[2]++;
    else if (1200 <= tmp and tmp <= 1599)
      A[3]++;
    else if (1600 <= tmp and tmp <= 1999)
      A[4]++;
    else if (2000 <= tmp and tmp <= 2399)
      A[5]++;
    else if (2400 <= tmp and tmp <= 2799)
      A[6]++;
    else if (2800 <= tmp and tmp <= 3199)
      A[7]++;
    else
      A[8]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (A[i] > 0) cnt++;
  }
  if (A[8] == 0) {
    cout << cnt << " " << cnt << endl;
  } else {
    int mi, ma;
    mi = cnt;
    if (8 - cnt <= A[8])
      ma = 8;
    else
      ma = cnt + A[8];
    cout << mi << " " << ma << endl;
  }
  return 0;
}
