#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  int a[101];
  int count[9] = {};
  int mini = 0, maxi = 0;
  cin >> n;
  for (int i = (1); i <= (n); i++) {
    cin >> a[i];
    if (a[i] <= 399) {
      count[0]++;
    } else if (a[i] <= 799) {
      count[1]++;
    } else if (a[i] <= 1199) {
      count[2]++;
    } else if (a[i] <= 1599) {
      count[3]++;
    } else if (a[i] <= 1999) {
      count[4]++;
    } else if (a[i] <= 2399) {
      count[5]++;
    } else if (a[i] <= 2799) {
      count[6]++;
    } else if (a[i] <= 3199) {
      count[7]++;
    } else {
      count[8]++;
    }
  }
  for (int i = (0); i <= (7); i++) {
    if (count[i] != 0) {
      mini++;
    }
  }
  if (mini + count[8] > 8) {
    maxi = 8;
  } else {
    maxi = mini + count[8];
  }
  if (mini == 0) {
    mini = 1;
  }
  cout << mini << " " << maxi << endl;
  return 0;
}
