#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int fr = 0;
  int cnt[10] = {};
  int cc = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) fr++;
    if (cnt[a / 400] == 0) cc++;
    cnt[a / 400]++;
  }
  cout << max(cc, 1) << " " << min(8, cc + fr) << endl;
  return 0;
}
