import java.util.*;

public class Main {                        
  public static void main(String[] args) {   
     
   Scanner sc = new Scanner(System.in);                                                                                     
    
   boolean flag[] = {false,false,false,false,false,false,false,false};
   
    int N = sc.nextInt();
   
    int maxcnt = 0;
    
    for(int i = 0;i < N;i++){
       int a = sc.nextInt();
       
       for(int j = 0;j <= 7;j++){
           if(400*j <= a && a < 400*(j+1)){
               flag[j] = true;   
               break;
           }      
           if(3200 <= a){
               maxcnt++;
               break;
           }
       }                      
    }
    
    int sum = 0;
           
    for(int i = 0;i < 8;i++){
        if(flag[i] == true){
            sum++;
        }        
    }
    
    int min = 0;
    int max = 0;    
    
    if(sum == 0){
        min = 1;
        max = maxcnt;
        System.out.println(min + " " + max);
        return;
    }    
    
    if(sum > 0){
        min = sum;
        max = sum + maxcnt;
        System.out.println(min + " " + max);
        return;
    }    
    
  }             
}


/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