#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a.at(i);
  vector<int> b(9, 0);
  for (int i = 0; i < n; i++) {
    if (a.at(i) <= 399) {
      b.at(0)++;
    } else if (a.at(i) <= 799) {
      b.at(1)++;
    } else if (a.at(i) <= 1199) {
      b.at(2)++;
    } else if (a.at(i) <= 1599) {
      b.at(3)++;
    } else if (a.at(i) <= 1999) {
      b.at(4)++;
    } else if (a.at(i) <= 2399) {
      b.at(5)++;
    } else if (a.at(i) <= 2799) {
      b.at(6)++;
    } else if (a.at(i) <= 3199) {
      b.at(7)++;
    } else {
      b.at(8)++;
    }
  }
  int m = 0, M = 0;
  for (int i = 0; i < 9; i++) {
    if (i < 8) {
      if (b.at(i) > 0) {
        m++;
        M++;
      }
    } else {
      M += b.at(i);
    }
  }
  cout << m << " " << M << endl;
  return 0;
}
