#include <bits/stdc++.h>
using namespace std;
void f(int c[], int r) {
  if (r < 400)
    c[0]++;
  else if (r < 800)
    c[1]++;
  else if (r < 1200)
    c[2]++;
  else if (r < 1600)
    c[3]++;
  else if (r < 2000)
    c[4]++;
  else if (r < 2400)
    c[5]++;
  else if (r < 2800)
    c[6]++;
  else if (r < 3200)
    c[7]++;
  else
    c[8]++;
}
int main() {
  int n, c[9], r[101];
  cin >> n;
  for (int i = 0; i < 9; i++) {
    c[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    cin >> r[i];
    f(c, r[i]);
  }
  int min, max;
  min = 0;
  max = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] != 0) min++;
  }
  if (min == 0) min++;
  max = min + c[8];
  cout << min << ' ' << max << endl;
  return 0;
}
