#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> data(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400) {
      data[0]++;
    } else if (a < 800) {
      data[1]++;
    } else if (a < 1200) {
      data[2]++;
    } else if (a < 1600) {
      data[3]++;
    } else if (a < 2000) {
      data[4]++;
    } else if (a < 2400) {
      data[5]++;
    } else if (a < 2800) {
      data[6]++;
    } else if (a < 3200) {
      data[7]++;
    } else {
      data[8]++;
    }
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (data[i] != 0) {
      min++;
      max++;
    }
  }
  if (min == 0 && data[8] != 0) min = 1;
  if (max + data[8] <= 8)
    max += data[8];
  else
    max = 8;
  cout << min << " " << max << endl;
}
