#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N], flag[9];
  int count = 0, max = 0, min = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 9; i++) {
    flag[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    if (1 <= a[i] && a[i] <= 399) {
      flag[0] = 1;
    } else if (400 <= a[i] && a[i] <= 799) {
      flag[1] = 1;
    } else if (800 <= a[i] && a[i] <= 1199) {
      flag[2] = 1;
    } else if (1200 <= a[i] && a[i] <= 1599) {
      flag[3] = 1;
    } else if (1600 <= a[i] && a[i] <= 1999) {
      flag[4] = 1;
    } else if (2000 <= a[i] && a[i] <= 2399) {
      flag[5] = 1;
    } else if (2400 <= a[i] && a[i] <= 2799) {
      flag[6] = 1;
    } else if (2800 <= a[i] && a[i] <= 3199) {
      flag[7] = 1;
    } else if (a[i] >= 3200) {
      flag[8] = 1;
      count += 1;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (flag[i] == 1) {
      min += 1;
    }
  }
  if (flag[8] == 1) {
    max = min + count;
    if (max > 8) {
      max = 8;
    }
  } else {
    max = min;
  }
  cout << min << " " << max << endl;
}
