#include <bits/stdc++.h>
using namespace std;
int frecv[10];
int main() {
  int n, obligatoriu = 0, optional = 0;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    int x;
    cin >> x;
    x = x / 400;
    x = min(x, 8);
    frecv[x]++;
  }
  for (int i = 0; i < 8; ++i)
    if (frecv[i]) ++obligatoriu;
  optional = frecv[8];
  int minim = max(obligatoriu, 1);
  int maxim = min(8, obligatoriu + optional);
  cout << minim << " " << maxim;
  return 0;
}
