#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a = 0;
  int b = 0;
  int c = 0;
  int d = 0;
  int e = 0;
  int f = 0;
  int g = 0;
  int h = 0;
  vector<int> point(N);
  for (int i = 0; i < N; i++) {
    cin >> point.at(i);
  }
  for (int j = 0; j < N; j++) {
    if (400 <= point.at(j) && point.at(j) <= 799) {
      a = a + 1;
    }
    if (800 <= point.at(j) && point.at(j) <= 1199) {
      b = b + 1;
    }
    if (1200 <= point.at(j) && point.at(j) <= 1599) {
      c = c + 1;
    }
    if (1600 <= point.at(j) && point.at(j) <= 1999) {
      d = d + 1;
    }
    if (2000 <= point.at(j) && point.at(j) <= 2399) {
      e = e + 1;
    }
    if (2400 <= point.at(j) && point.at(j) <= 2799) {
      f = f + 1;
    }
    if (2800 <= point.at(j) && point.at(j) <= 3199) {
      g = g + 1;
    }
    if (3200 <= point.at(j)) {
      h = h + 1;
    }
  }
  int count0 = 0;
  if (a == 0) {
    count0 = count0 + 1;
  }
  if (b == 0) {
    count0 = count0 + 1;
  }
  if (c == 0) {
    count0 = count0 + 1;
  }
  if (d == 0) {
    count0 = count0 + 1;
  }
  if (e == 0) {
    count0 = count0 + 1;
  }
  if (f == 0) {
    count0 = count0 + 1;
  }
  if (g == 0) {
    count0 = count0 + 1;
  }
  int min = 0;
  min = 7 - count0;
  if (min == 0) {
    min = 1;
  }
  int max = min + h;
  if (count0 == 7) {
    max = h;
  }
  if (max >= 7) {
    max = 7;
  }
  cout << min << " " << max << endl;
}
