#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> count(9);
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    count[min(a[i] / 400, 8)] += 1;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] >= 1) ans += 1;
  }
  cout << min(8, max(ans, 1)) << " " << min(8, ans + count[8]) << endl;
  return 0;
}
