#include <bits/stdc++.h>
using namespace std;
int i, n, m, a, c[20];
int main() {
  for (cin >> n; i++ < n; cin >> a, c[a / 400]++)
    ;
  for (i = 0; i < 8; i++) m += c[i] > 0;
  cout << m << " " << m + c[8] + c[9] + c[10] + c[11] + c[12];
}
