#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n;
  vector<int> a(8, 0);
  int superhaka = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x >= 3200)
      superhaka++;
    else if (x >= 2800)
      a[7] = 1;
    else if (x >= 2400)
      a[6] = 1;
    else if (x >= 2000)
      a[5] = 1;
    else if (x >= 1600)
      a[4] = 1;
    else if (x >= 1200)
      a[3] = 1;
    else if (x >= 800)
      a[2] = 1;
    else if (x >= 400)
      a[1] = 1;
    else
      a[0] = 1;
  }
  int clr_min = 0, clr_max;
  for (int y : a) {
    if (y > 0) clr_min++;
  }
  cout << max(1, clr_min) << " " << min(8, clr_min + superhaka) << endl;
}
