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