#include <bits/stdc++.h>
using namespace std;
const int MaxN = 4e5 + 17;
int n, a[MaxN], u[MaxN], S, Sum;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", a + i);
    if (a[i] >= 3200)
      ++Sum;
    else {
      u[a[i] / 400] = 1;
    }
  }
  for (int i = 0; i <= 100; ++i) S += u[i];
  cout << S << ' ' << S + Sum;
  return 0;
}
