#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int i;
  int count = 0;
  int count_all = 0;
  vector<int> b(8);
  for (i = 0; i < 8; i++) {
    b[i] = 0;
  }
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  for (i = 0; i < n; i++) {
    if (a[i] <= 399) {
      if (b[0] == 0) {
        count++;
        b[0] = 1;
      }
    } else if (a[i] <= 799) {
      if (b[1] == 0) {
        count++;
        b[1] = 1;
      }
    } else if (a[i] <= 1199) {
      if (b[2] == 0) {
        count++;
        b[2] = 1;
      }
    } else if (a[i] <= 1599) {
      if (b[3] == 0) {
        count++;
        b[3] = 1;
      }
    } else if (a[i] <= 1999) {
      if (b[4] == 0) {
        count++;
        b[4] = 1;
      }
    } else if (a[i] <= 2399) {
      if (b[5] == 0) {
        count++;
        b[5] = 1;
      }
    } else if (a[i] <= 2799) {
      if (b[6] == 0) {
        count++;
        b[6] = 1;
      }
    } else if (a[i] <= 3199) {
      if (b[7] == 0) {
        count++;
        b[7] = 1;
      }
    } else if (count_all <= 8 - count) {
      count_all++;
    }
  }
  cout << count;
  cout << " ";
  cout << count + count_all;
}
