#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int num[9] = {};
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      num[8]++;
    else
      num[a / 400]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (num[i] != 0) count++;
  }
  cout << count << " " << count + num[8] << endl;
  return 0;
}
