#include <bits/stdc++.h>
using namespace std;
int n, has[233], rat[] = {0, 399, 799, 1199, 1599, 1999, 2399, 2799, 3199, -1};
int main() {
  int i, dt = 0;
  cin >> n;
  for (i = 1; i <= n; i++) {
    int x;
    cin >> x;
    for (int i = 1; rat[i] != -1; i++)
      if (rat[i - 1] < x && x <= rat[i]) has[i] = 1;
    if (x > 3199) ++dt;
  }
  int x = 0;
  for (i = 1; i <= 20; i++) x += has[i];
  cout << x << " " << min(x + dt, 9);
}
