#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N, 0);
  for (int i = 0; i < N; i++) {
    cin >> a.at(i);
  }
  int k = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, j = 0, s = 0;
  for (int i = 0; i < N; i++) {
    if (a.at(i) < 400) {
      k = 1;
    } else if (a.at(i) < 800) {
      b = 1;
    } else if (a.at(i) < 1200) {
      c = 1;
    } else if (a.at(i) < 1600) {
      d = 1;
    } else if (a.at(i) < 2000) {
      e = 1;
    } else if (a.at(i) < 2400) {
      f = 1;
    } else if (a.at(i) < 2800) {
      g = 1;
    } else if (a.at(i) < 3200) {
      h = 1;
    } else {
      s = 1;
      j++;
    }
  }
  int min = k + b + c + d + e + f + g + h + s;
  int max = k + b + c + d + e + f + g + h + j;
  cout << min << ' ' << max << endl;
}
