#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> num(9, 0);
  int N;
  cin >> N;
  for (int i = 0, a; i < N; i++) {
    cin >> a;
    num[min(a / 400, 8)]++;
  }
  int mini = 0, maxi;
  for (int i = 0; i < 8; i++)
    if (num[i]) mini++;
  if (mini == 0) {
    mini = 1;
    maxi = min(num[8], 8);
  } else
    maxi = min(mini + num[8], 8);
  cout << mini << " " << maxi << endl;
}
