#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.at(i);
  }
  int min = 0;
  int max = 0;
  set<int> s;
  int x = 0;
  for (int i = 0; i < N; i++) {
    int count = 0;
    if (a.at(i) >= 3200) {
      x++;
      continue;
    }
    while (a.at(i) >= 400) {
      a.at(i) -= 400;
      count++;
    }
    s.insert(count);
  }
  if (s.size() > 0) {
    min = s.size();
  } else {
    min = 1;
  }
  max = min + x;
  cout << min << " " << max << endl;
  return 0;
}
