#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int grade[9] = {0};
  int N;
  cin >> N;
  int tmp = 0;
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    grade[tmp / 400]++;
  }
  int base = 0;
  for (int i = 0; i < 8; i++) {
    if (grade[i] > 0) base++;
  }
  int minans, maxans;
  maxans = base + grade[8];
  if (base == 0)
    minans = 1;
  else
    minans = base;
  cout << minans << " " << maxans << endl;
  return 0;
}
