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