#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], c[9], t = 0;
  for (int i = 0; i < 9; i++) c[i] = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      c[8]++;
    else
      c[a[i] / 400]++;
  }
  for (int i = 0; i < 8; i++)
    if (c[i] > 0) t++;
  cout << max(t, c[8]) << ' ' << min(8, t + c[8]);
}
