#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, count = 0;
  cin >> n;
  std::deque<int> colors(8, 0);
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (1 <= a && a <= 399) {
      colors[0] = 1;
    } else if (400 <= a && a <= 799) {
      colors[1] = 1;
    } else if (800 <= a && a <= 1199) {
      colors[2] = 1;
    } else if (1200 <= a && a <= 1599) {
      colors[3] = 1;
    } else if (1600 <= a && a <= 1999) {
      colors[4] = 1;
    } else if (2000 <= a && a <= 2399) {
      colors[5] = 1;
    } else if (2400 <= a && a <= 2799) {
      colors[6] = 1;
    } else if (2800 <= a && a <= 3199) {
      colors[7] = 1;
    } else if (a >= 3200) {
      count++;
    }
  }
  int min_num = 0, max_num = 0;
  for (int j = 0; j < colors.size(); j++) {
    if (colors[j] == 1) {
      min_num++;
      max_num++;
    } else {
      if (count > 0) {
        max_num++;
        count--;
      }
    }
  }
  cout << min_num << " " << max_num << endl;
}
