#include <bits/stdc++.h>
using namespace std;
int iy[] = {0, 0, 1, -1};
int ix[] = {1, -1, 0, 0};
int n, m;
int a[101], fl, sum, b[9];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > 3199) {
      fl++;
    } else {
      b[a[i] / 400] = 1;
    }
  }
  for (int i = 0; i < 9; i++) {
    if (b[i] == 1) sum++;
  }
  cout << sum << endl;
  if (fl + sum > 7) {
    cout << 8 << endl;
  } else {
    cout << sum + fl << endl;
  }
  return 0;
}
