#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n];
  int sum = 0;
  int a;
  int gr = 0, br = 0, grr = 0, p = 0, d = 0, e = 0, j = 0, k = 0, f = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    a = arr[i] / 400;
    if (a == 0) gr = 1;
    if (a >= 1 && a < 2) br = 1;
    if (a >= 2 && a < 3) grr = 1;
    if (a >= 3 && a < 4) p = 1;
    if (a >= 4 && a < 5) d = 1;
    if (a >= 5 && a < 6) e = 1;
    if (a >= 6 && a < 7) j = 1;
    if (a >= 7 && a <= 8) k = 1;
    if (a >= 8) f++;
  }
  sum += (gr + br + grr + p + d + e + j + k);
  if (sum == 0 && f) sum = 1;
  cout << sum << " " << sum + f << endl;
  return 0;
}
