#include <bits/stdc++.h>
using namespace std;
const int INF = numeric_limits<int>::max();
const int MOD = (1e9 + 7);
int main() {
  int N, cnt = 0;
  cin >> N;
  int C[N];
  for (int i = 0; i < (int)(N); i++) {
    cin >> C[i];
  }
  int B[9] = {0};
  for (int i = 0; i < (int)(N); i++) {
    for (int j = 0; j < (int)(8); j++) {
      if (400 * j <= C[i] && C[i] < 400 * (j + 1)) B[j]++;
    }
  }
  for (int i = 0; i < (int)(N); i++) {
    if (C[i] >= 3200) B[8]++;
  }
  for (int i = 0; i < (int)(8); i++) {
    if (B[i] != 0) cnt++;
  }
  int min;
  if (C[8] != 0)
    min = cnt;
  else
    min = 1;
  int max = cnt + B[8];
  cout << min << " " << max << endl;
}
