#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int max, min;
  int N, a[100];
  int gr = 0, br = 0, gre = 0, lb = 0, bl = 0, ye = 0, o = 0, re = 0, all = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399) gr = 1;
    if (a[i] >= 400 && a[i] <= 799) br = 1;
    if (a[i] >= 800 && a[i] <= 1199) gre = 1;
    if (a[i] >= 1200 && a[i] <= 1599) lb = 1;
    if (a[i] >= 1600 && a[i] <= 1999) bl = 1;
    if (a[i] >= 2000 && a[i] <= 2399) ye = 1;
    if (a[i] >= 2400 && a[i] <= 2799) o = 1;
    if (a[i] >= 2800 && a[i] <= 3199) re = 1;
    if (a[i] >= 3200) all = all + 1;
  }
  if (8 - (gr + br + gre + lb + bl + ye + o + re) >= all) {
    max = 8 - (8 - (gr + br + gre + lb + bl + ye + o + re)) + all;
  } else
    max = 8;
  if (all > 0 && gr + br + gre + lb + bl + ye + o + re == 0) {
    min = 1;
  } else
    min = gr + br + gre + lb + bl + ye + o + re;
  cout << min << " " << max << endl;
  return 0;
}
