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