#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int tmp;
  map<int, int> rate;
  for (int i = 0; i < (int)(9); i++) {
    rate[i] = 0;
  }
  for (int i = 0; i < (int)(n); i++) {
    cin >> tmp;
    if (tmp >= 3200)
      rate[8]++;
    else
      rate[tmp / 400]++;
  }
  int min = 0;
  int max = 0;
  int nonPlayer = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (rate[i] > 0) {
      min++;
      max++;
    } else {
      nonPlayer++;
    }
  }
  int add = 0;
  if (nonPlayer <= rate[8])
    add = nonPlayer;
  else
    add = rate[8];
  cout << min << " " << max + add << endl;
  return 0;
}
