#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int A[8] = {};
  int B = 0;
  for (int i = 0; i < (N); i++) {
    int a;
    cin >> a;
    int b = a / 400;
    if (b < 8)
      A[b] = 1;
    else
      B++;
  }
  int C = 0;
  for (int i = 0; i < (8); i++) C += A[i];
  cout << (C) << " ";
  cout << (C + B) << "\n";
  return 0;
}
