#include <bits/stdc++.h>
using namespace std;
int MAXN = 1000;
int main() {
  int N;
  int a[MAXN], f[9];
  cin >> N;
  for (int i = 0; i < 9; i++) {
    f[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] / 400 >= 8) {
      f[8] += 1;
    } else {
      f[a[i] / 400] += 1;
    }
  }
  int ans, sumf;
  for (int i = 0; i < 8; i++) {
    if (f[i] != 0) sumf += 1;
  }
  if (sumf + a[8] >= 8) {
    ans = 8;
  } else {
    ans = sumf + a[8];
  }
  cout << sumf << " " << ans << endl;
  return 0;
}
