#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
int N;
int a[100];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> N;
  for (int i = (int)0; i < (int)N; i++) cin >> a[i];
  int c[9];
  memset(c, 0, sizeof(c));
  for (int i = (int)0; i < (int)N; i++) {
    if (3200 <= a[i]) {
      c[8]++;
      continue;
    }
    for (int j = (int)0; j < (int)8; j++) {
      if (1 + 399 * j <= a[i] && a[i] <= 399 + j * 400) c[j]++;
    }
  }
  int min_v = 0, max_v = 0;
  for (int i = (int)0; i < (int)8; i++) {
    if (c[i] != 0) min_v++;
  }
  max_v = min_v + c[8];
  cout << min_v << " " << max_v << endl;
}
