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