#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], mi_cnt = 0, ma_cnt, free = 0;
  bool col_list[8] = {};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] < 3200) {
      col_list[a[i] / 400] = true;
    } else {
      free++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (col_list[i]) mi_cnt++;
  }
  ma_cnt = (mi_cnt + free > 8) ? 8 : mi_cnt + free;
  if (mi_cnt == 0) mi_cnt = 1;
  cout << mi_cnt << " " << ma_cnt << endl;
}
