#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[10] = {};
  int tmp;
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    a[i] = tmp / 400;
    if (a[i] > 7) a[i] = 8;
  }
  int b[9] = {};
  for (int i = 0; i < 9; i++) {
    if (a[i]) b[a[i]]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) count++;
  }
  cout << count << ' ';
  count += b[8];
  if (count > 8) count = 8;
  cout << count << endl;
  return 0;
}
