#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, rate[8] = {0}, cnt_free = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      rate[a / 400]++;
    else
      cnt_free++;
  }
  int cnt_min = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) cnt_min++;
  }
  int cnt_max = 0;
  if (cnt_min + cnt_free > 8)
    cnt_max = 8;
  else
    cnt_max = cnt_min + cnt_free;
  cout << cnt_min << " " << cnt_max << endl;
  return 0;
}
