#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  int arr[n], col[9] = {0}, minV = 0, maxV = 0, flag = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] > 3199)
      col[8]++;
    else
      col[arr[i] / 400]++;
  }
  for (int i = 0; i < 8; i++)
    if (col[i]) minV++;
  if (minV == 0)
    cout << minV + 1 << " " << min(minV + col[8], 8);
  else
    cout << minV << " " << min(minV + col[8], 8);
  return 0;
}
