import java.util.*;
import java.lang.Math;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz