#include <bits/stdc++.h>
using namespace std;
const int N_MAX = 110;
int which_color(int r) {
  if (r < 400) return 0;
  if (r < 800) return 1;
  if (r < 1200) return 2;
  if (r < 1600) return 3;
  if (r < 2000) return 4;
  if (r < 2400) return 5;
  if (r < 2800) return 6;
  if (r < 3200)
    return 7;
  else
    return 8;
}
int main() {
  int N;
  int a[N_MAX];
  cin >> N;
  for (int(i) = (0); (i) < (N); ++(i)) cin >> a[i];
  int c[9] = {};
  for (int(i) = (0); (i) < (N); ++(i)) {
    int k = which_color(a[i]);
    c[k] += 1;
  }
  int x = 0;
  for (int(i) = (0); (i) < (8); ++(i)) {
    if (c[i] > 0) ++x;
  }
  cout << x << " " << (x + c[8]) << endl;
  return 0;
}
