#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  sort(v.begin(), v.end());
  int maxc, cnt = 0, l = 0;
  if (v[0] >= 3200)
    l++;
  else
    cnt++;
  for (int i = 1; i < n; i++) {
    if (v[i] >= 3200)
      l++;
    else if (v[i - 1] / 100 * 100 + 400 <= v[i])
      cnt++;
  }
  maxc = min(cnt + l, 8);
  if (cnt == 0) cnt = 1;
  cout << cnt << ' ' << maxc << endl;
  return 0;
}
