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