#include <bits/stdc++.h>
using namespace std;
int main() {
  bool colours[8];
  for (int i = 0; i < 8; i++) colours[i] = false;
  int N;
  int free = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    int index = r / 400;
    if (index < 8)
      colours[index] = true;
    else
      free++;
  }
  int b = 0;
  for (int i = 0; i < 8; i++) {
    if (colours[i]) {
      b++;
    }
  }
  cout << max(1, b) << " " << min(8, b + free) << endl;
}
