#include <bits/stdc++.h>
using namespace std;
using LL = int64_t;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> b(9);
  for (auto& i : a) {
    cin >> i;
    b[i / 400]++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) sum++;
  }
  cout << sum << ' ' << sum + b[8] << endl;
}
