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