#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a;
  vector<int> rate(10);
  for (int i = 0; i < N; i++) {
    cin >> a;
    rate[a / 400]++;
  }
  int sum = 0;
  for (int i = 0; i <= 7; i++) {
    if (rate[i]) sum++;
  }
  cout << max(1, sum) << " " << sum + rate[8] << endl;
}
