#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a, ind[13] = {};
  for (long long i = (0); i < (N); i++) {
    cin >> a;
    ind[a / 400]++;
  }
  int cnt = 0, cnt2 = 0;
  for (long long i = (0); i < (13); i++)
    if (ind[i] > 0)
      if (i < 8)
        cnt++;
      else
        cnt2 += ind[i];
  cout << max(1, cnt) << " " << min(8, cnt + cnt2) << endl;
  return 0;
}
