#include <bits/stdc++.h>
using namespace std;
int main() {
  int col[8];
  memset(col, 0, sizeof(col));
  int ec = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400) {
      col[0] = 1;
    } else if (a < 800) {
      col[1] = 1;
    } else if (a < 1200) {
      col[2] = 1;
    } else if (a < 1600) {
      col[3] = 1;
    } else if (a < 2000) {
      col[4] = 1;
    } else if (a < 2400) {
      col[5] = 1;
    } else if (a < 2800) {
      col[6] = 1;
    } else if (a < 3200) {
      col[7] = 1;
    } else if (a >= 3200) {
      ec++;
    }
  }
  int ans_min = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] != 0) ans_min++;
  }
  int ans_max = ans_min + ec;
  cout << ans_min << " " << ans_max;
  return 0;
}
