#include <bits/stdc++.h>
using namespace std;
int N;
vector<int> a;
int main(void) {
  cin >> N;
  a.assign(N, 0);
  vector<int> col(8 + 1);
  for (int i = (0); i < (int)(N); ++i) {
    cin >> a[i];
    int c = min(a[i] / 400, 8);
    col[c]++;
  }
  int ans_max = 0;
  int ans_min = 0;
  int rest = 0;
  for (int i = (0); i < (int)(8); ++i) {
    if (col[i] > 0)
      ans_max++;
    else
      rest++;
  }
  ans_min = ans_max;
  if (rest == 8 && col[8] > 0) ans_min++;
  ans_max += min(rest, col[8]);
  cout << ans_min << ' ' << ans_max << endl;
  return 0;
}
