#include <iostream>

using namespace std;

int main(void) {
  int N;
  cin >> N;
  
  int R[10] = { };
  int high = 0;
  for(int i = 0; i < N; i++) {
   	int r;
    cin >> r;
   	if(r >= 3200) high++;
    else R[r / 400]++;
  }
  
  int cln = 0;
  for(int i = 0; i < 8; i++) {
    cln += (R[i] > 0);
  }
  
  if(cln == 0) cout << 1 << ' ';
  else cout << cln << ' ';
  
  cout << (high + cln) << endl
  
  return 0;
}
  
    