#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<bool> rate(8);
  int free = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 400) {
      rate[0] = true;
    } else if (a < 800) {
      rate[1] = true;
    } else if (a < 1200) {
      rate[2] = true;
    } else if (a < 1600) {
      rate[3] = true;
    } else if (a < 2000) {
      rate[4] = true;
    } else if (a < 2400) {
      rate[5] = true;
    } else if (a < 2800) {
      rate[6] = true;
    } else if (a < 3200) {
      rate[7] = true;
    } else {
      free++;
    }
  }
  int number = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i]) number++;
  }
  int M, m;
  M = number + free;
  if (M > 8) M = 8;
  m = number;
  if (m == 0) m = 1;
  cout << m << " " << M << endl;
}
