#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100;
int n, a[MAX_N] = {}, list[MAX_N] = {};
bool f = true;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    list[3199 > a[i] ? a[i] / 400 : 8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (list[i] > 0) f = false;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (list[i]) sum++;
  }
  cout << sum << " " << (sum + list[8] < 9 ? sum + list[8] : 8) << endl;
  return 0;
}
