#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int r[n];
  for (int i = 0; i < n; i++) cin >> r[i];
  vector<int> rating = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4800};
  int id[9] = {0};
  for (int i = 0; i < n; i++) {
    id[lower_bound((rating).begin(), (rating).end(), r[i]) - rating.begin()]++;
  }
  int mi = 0;
  for (int i = 0; i < 8; i++)
    if (id[i] != 0) mi++;
  mi = mi == 0 ? 1 : mi;
  cout << mi << " " << mi + id[8];
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
