#include <bits/stdc++.h>
using namespace std;
int main() {
  int ra[9] = {0};
  int n;
  cin >> n;
  int i, a[n];
  for (i = 0; i < n; i++) cin >> a[i];
  int ex = 0;
  for (i = 0; i < n; i++) {
    if (a[i] >= 3200) ex++;
    int z = a[i] / 400;
    ra[z]++;
  }
  int cnt = 0;
  for (i = 0; i <= 7; i++) {
    if (ra[i] != 0) cnt++;
  }
  cout << cnt << " " << cnt + ex << endl;
  return 0;
}
