#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, pro = 0;
  int a[100], color[8] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      pro++;
    } else {
      color[a[i] / 400] = 1;
    }
  }
  int min_c = 0, max_c = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      min_c++;
      max_c++;
    }
  }
  if (min_c == 0) min_c = 1;
  cout << min_c << " " << min(8, max_c + pro) << "\n";
  return 0;
}
