#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(9, 0);
  int ansm = 0, ansma = 0;
  for (int i = 0; i < n; ++i) {
    int num;
    cin >> num;
    if (num < 3200) num = 3200;
    a[num / 400]++;
  }
  for (int i = 0; i < 8; ++i) {
    if (a[i]) {
      ansm++;
      ansma++;
    }
  }
  ansma += a[8];
  cout << ansm << " " << ansma << endl;
}
