#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], count = 0, add = 0;
  int judge[9];
  int min = 0, max = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < 9; i++) judge[i] = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] < 400) judge[0] = 1;
    for (int j = 1; j < 8; j++)
      if (400 * j <= a[i] && a[i] < 400 * (j + 1)) {
        judge[j] = 1;
      }
    if (a[i] >= 3200) {
      judge[8] = 1;
      add++;
    }
  }
  for (int i = 0; i < 8; i++) min += judge[i];
  max = min + add;
  cout << min << " " << max << endl;
}
