#include <bits/stdc++.h>
using namespace std;
int a[128], n;
bool check(int x, int y) {
  for (int i = 0; i < n; i++) {
    if (x <= a[i] && a[i] <= y) {
      return true;
    }
  }
  return false;
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  int ans1 = 0;
  if (check(1, 399)) {
    ans1++;
  }
  if (check(400, 799)) {
    ans1++;
  }
  if (check(800, 1199)) {
    ans1++;
  }
  if (check(1200, 1599)) {
    ans1++;
  }
  if (check(1699, 1999)) {
    ans1++;
  }
  if (check(2000, 2399)) {
    ans1++;
  }
  if (check(2400, 3199)) {
    ans1++;
  }
  int x = n;
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      x = i;
      break;
    }
  }
  cout << ans1 << " " << ans1 + (n - x) << endl;
}
