#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int ar[n];
  int bl[9] = {};
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
    if (ar[i] < 400)
      bl[0] = true;
    else if (ar[i] < 800)
      bl[1] = true;
    else if (ar[i] < 1200)
      bl[2] = true;
    else if (ar[i] < 1600)
      bl[3] = true;
    else if (ar[i] < 2000)
      bl[4] = true;
    else if (ar[i] < 2400)
      bl[5] = true;
    else if (ar[i] < 2800)
      bl[6] = true;
    else if (ar[i] < 3200)
      bl[7] = true;
    else
      bl[8]++;
  }
  int mn = 0, mx = 0;
  for (int i = 0; i < 8; i++) {
    if (bl[i]) mn++;
  }
  mx = mn + bl[8];
  if (mn == 0 && bl[8] > 0) mn = 1;
  if (mx > 8) mx = 8;
  cout << mn << " " << mx << endl;
}
