#include <iostream>
using namespace std;
int main(){
  int N;
  int rate;
  int A[9];
  int color = 0;
  cin >> N;
  for(int i=0;i<9;i++){
    A[i] = 0;
  }
  for(int i=0;i<N;i++){
    cin >> rate;
    A[min(8,rate/400)] += 1;
  }
  for(int i=0;i<8;i++){
    color += min(1,A[i]);
  }
  cout << max(color,1) << " " << color+A[8];
  return 0;
}
