#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long extra = 0;
  set<long long> colors;
  for (int i = 0; i < n; i++) {
    long long a;
    cin >> a;
    long long val = a / 400;
    if (val < 8) {
      colors.insert(val);
    } else {
      extra++;
    }
  }
  cout << colors.size() << " " << colors.size() + extra << endl;
  return 0;
}
