#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;
    cin >> a;
    a /= 400;
    if (a >= 8) {
      count += 1;
    } else {
      ans.at(a) = true;
    }
  }
  int num = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (ans.at(i)) {
      num += 1;
    }
  }
  int y = num + count;
  cout << num << " " << (y > 8 ? 8 : y) << endl;
}
