#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  bool c[8];
  int temp;
  int count = 0;
  for (int i = 0; i < 8; i++) c[i] = false;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    temp /= 400;
    if (temp < 8)
      c[temp] = true;
    else
      count++;
  }
  temp = 0;
  for (int i = 0; i < 8; i++)
    if (c[i]) temp++;
  int min = temp;
  int max = temp;
  if (min == 0) min = 1;
  max = (8 > max + count) ? max + count : 8;
  cout << min << " " << max << endl;
  return 0;
}
