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;
    }    
    
  }             
}

