#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<int> color(8, 0);
  int uppper8 = 0;
  for (int i = 0; i < n; i++) {
    int r = a[i] / 400;
    if (r < 8) {
      color[r] = 1;
    } else {
      uppper8++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    sum += color[i];
  }
  int max = sum + min(8 - sum, uppper8);
  int min;
  if (sum == 0 & uppper8 > 0) {
    min = 1;
  } else {
    min = sum;
  }
  cout << min << " " << max << endl;
  return 0;
}
