#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> v(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) a = 3200;
    v[a / 400]++;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) min += (v[i] > 0) ? 1 : 0;
  if (min == 0) min = 1;
  int max = min + v[8];
  if (max > 8) max = 8;
  cout << min << " " << max << endl;
  return 0;
}
