#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  int score[101];
  bool hai[10] = {false};
  int over = 0;
  int minans = 0;
  int maxans = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> score[i];
  }
  for (int j = 0; j < n; ++j) {
    if (score[j] <= 399) {
      hai[0] = true;
    } else if (score[j] <= 799) {
      hai[1] = true;
    } else if (score[j] <= 1199) {
      hai[2] = true;
    } else if (score[j] <= 1599) {
      hai[3] = true;
    } else if (score[j] <= 1999) {
      hai[4] = true;
    } else if (score[j] <= 2399) {
      hai[5] = true;
    } else if (score[j] <= 2799) {
      hai[6] = true;
    } else if (score[j] <= 3199) {
      hai[7] = true;
    } else {
      over++;
    }
  }
  for (int k = 0; k < 8; ++k) {
    if (hai[k] == true) minans++;
  }
  if (minans == 0) minans++;
  maxans = over + minans;
  cout << minans << " " << maxans;
  return 0;
}
