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