#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  int count = 0;
  for (int i = 0; i < N; i++) cin >> a[i];
  set<int> s;
  for (int i = 0; i < N; i++) {
    if (a[i] < 3200)
      s.insert(a[i] / 400);
    else
      count++;
  }
  cout << s.size() + min(1, count) << " " << s.size() + count << endl;
}
