#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> a(8, 0);
  int a_free = 0;
  int tmp_a;
  int ans_min = 0;
  int ans_max;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> tmp_a;
    tmp_a /= 400;
    if (tmp_a >= 8) {
      a_free++;
    } else {
      a[tmp_a]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] != 0) {
      ans_min++;
    }
  }
  if (ans_min + a_free > 8) {
    ans_max = 8;
  } else {
    ans_max = ans_min + a_free;
  }
  if (ans_min == 0 && a_free != 0) {
    ans_min = 1;
  }
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
