#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[8] = {};
  int free = 0;
  int N;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a < 3200)
      ++color[a / 400];
    else
      ++free;
  }
  int sum = 0;
  for (int i = 0; i < 8; ++i)
    if (0 < color[i]) ++sum;
  cout << ((0 == sum) ? 1 : sum) << " ";
  if (8 < sum + free)
    cout << 8;
  else
    cout << sum + free;
  return 0;
}
