#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int N;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> a[i];
  }
  int cou[110] = {};
  int cour = 0;
  for (int i = 1; i <= N; i++) {
    if (1 <= a[i] && a[i] <= 399)
      cou[0]++;
    else if (400 <= a[i] && a[i] <= 799)
      cou[1]++;
    else if (800 <= a[i] && a[i] <= 1199)
      cou[2]++;
    else if (1200 <= a[i] && a[i] <= 1599)
      cou[3]++;
    else if (1600 <= a[i] && a[i] <= 1999)
      cou[4]++;
    else if (2000 <= a[i] && a[i] <= 2399)
      cou[5]++;
    else if (2400 <= a[i] && a[i] <= 2799)
      cou[6]++;
    else if (2800 <= a[i] && a[i] <= 3199)
      cou[7]++;
    else
      cour++;
  }
  int coua = 0;
  for (int i = 0; i < 8; i++) {
    if (cou[i] > 0) coua++;
  }
  if (cour == 0) {
    cout << coua << ' ' << coua << endl;
  } else {
    if (coua == 0) {
      cout << 1 << ' ' << (cour >= 8 ? 8 : cour) << endl;
    } else {
      cout << coua << ' ' << (coua + cour >= 8 ? 8 : coua + cour) << endl;
    }
  }
}
