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