#include <bits/stdc++.h>
using namespace std;
void vout(vector<int> v) {
  for (int i = 0; i < v.size(); i++) cout << v.at(i) << endl;
}
int main() {
  vector<bool> ans(8, false);
  int n, count = 0;
  cin >> n;
  for (int i = 0; i < (int)(n); i++) {
    int a = 0, j = 0;
    cin >> a;
    if (a > 399) j = 1;
    if (a > 799) j = 2;
    if (a > 1199) j = 3;
    if (a > 1599) j = 4;
    if (a > 1999) j = 5;
    if (a > 2399) j = 6;
    if (a > 2799) j = 7;
    if (a > 3199) j = 8;
    if (j == 8) {
      count += 1;
    } else {
      ans.at(j) = true;
    }
  }
  int num = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (ans.at(i) == true) {
      num += 1;
    }
  }
  int y = num + count;
  if (y > 8) y = 8;
  cout << num << " " << y << endl;
}
