#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int color = 0;
  int F = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      color |= (1 << (a / 400));
    } else {
      F++;
    }
  }
  cout << __builtin_popcount(color) << ' ' << __builtin_popcount(color) + F;
}
