#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  int bit = 0, cnt = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] < 400) {
      bit |= (1 << 0);
    } else if (a[i] < 800) {
      bit |= (1 << 1);
    } else if (a[i] < 1200) {
      bit |= (1 << 2);
    } else if (a[i] < 1600) {
      bit |= (1 << 3);
    } else if (a[i] < 2000) {
      bit |= (1 << 4);
    } else if (a[i] < 2400) {
      bit |= (1 << 5);
    } else if (a[i] < 2800) {
      bit |= (1 << 6);
    } else if (a[i] < 3200) {
      bit |= (1 << 7);
    } else {
      cnt++;
    }
  }
  int flg = __builtin_popcount(bit);
  int max_ans, min_ans;
  max_ans = min(8, flg + cnt);
  if (cnt)
    min_ans = max(flg, 1);
  else
    min_ans = flg;
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
