#include <iostream>

using namespace std;
int a[110],c[20];
int main(){
	int i,n,k = 0,x = 0;
  	cin >> n;
  	for(i=0;i<n;i++){
		cin >> a[i];
  	}
  for(i=0;i<n;i++){
	c[a[i]/400]++;
    if(a[i]>=3200) x++;
  }
  for(i=0;i<8;i++){
	if(c[i]) k++;
  }
  if(k==0) cout << 1 << " " ;
  else cout << k << " ";
  cout << k + x << endl;
}
  
  
  