#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  bool COL[8];
  int ANS = 0;
  int ANY = 0;
  for (int i = 0; i < (N); i++) {
    int a;
    cin >> a;
    int g = a / 400;
    if (g < 8) {
      if (COL[g] == false) ANS++;
      COL[g] = true;
    } else {
      ANY++;
    }
  }
  int minA = (ANS == 0) ? 1 : ANS;
  int maxA = ANS + ANY;
  maxA = min(8, maxA);
  cout << minA << " " << maxA << endl;
  return 0;
}
