#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
int main() {
  std::ios::sync_with_stdio(false);
  int n;
  while (cin >> n) {
    vector<int> a(n);
    for (int i = 0; i < n; ++i) cin >> a[i];
    vector<int> c(10);
    for (int i = 0; i < n; ++i) {
      if (a[i] <= 399) {
        c[0] = 1;
      } else if (a[i] <= 799) {
        c[1] = 1;
      } else if (a[i] <= 1199) {
        c[2] = 1;
      } else if (a[i] <= 1599) {
        c[3] = 1;
      } else if (a[i] <= 1999) {
        c[4] = 1;
      } else if (a[i] <= 2399) {
        c[5] = 1;
      } else if (a[i] <= 2799) {
        c[6] = 1;
      } else if (a[i] <= 3199) {
        c[7] = 1;
      } else {
        c[8]++;
      }
    }
    int num = 0;
    for (int i = 0; i < 8; ++i)
      if (c[i]) num++;
    if (num == 0) {
      cout << 1 << " " << min(c[8], 9) << endl;
    } else {
      cout << num << " " << num + min(c[8], 9 - num) << endl;
    }
  }
  return 0;
}
