#include <iostream>
using namespace std;

int main(){
  int n;
  int iro[9] = {0,0,0,0,0,0,0,0,0};
  cin >> n;
  int a;
  for(int i=0;i<n;i++){
    cin >> a;
    iro[(a/400<9)?a/400:8]++;
  }
  int syurui=0;
  for(int i=0;i<8;i++){
    if(iro[i]) syurui++;
  }
  cout << ((syurui!=0)?syurui:1) << " " << syurui+iro[8] << endl;

  return 0;
}