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 over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    }                                      
} import java.util.*; util.* java 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 over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    }                                      
} Main public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);                
        
       boolean flag[] = {false,false,false,false,false,false,false,false};
        
       int over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    } main {
        
        Scanner sc = new Scanner(System.in);                
        
       boolean flag[] = {false,false,false,false,false,false,false,false};
        
       int over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean flag[] = {false,false,false,false,false,false,false,false}; flag {false,false,false,false,false,false,false,false} false false false false false false false false int over = 0; over 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int a[] = new int[N]; a new int[N] N for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    } {       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc if(a[i] >= 3200){
               over++;
       } a[i] >= 3200 a[i] a i 3200 {
               over++;
       } over++ over for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       } int j = 0; int j = 0; j 0 j <= 7 j 7 j++ j++ j {           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       } {           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       } if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           } 400*j <= a[i] && a[i] < 400*(j+1) 400*j <= a[i] 400*j 400 j a[i] a i a[i] < 400*(j+1) a[i] a i 400*(j+1) 400 (j+1) j 1 {
                flag[j] = true;
           } flag[j] = true flag[j] flag j true int sum = 0; sum 0 for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
        
           if(flag[i]){
               sum++;
           }
           
    } {
        
           if(flag[i]){
               sum++;
           }
           
    } if(flag[i]){
               sum++;
           } flag[i] flag i {
               sum++;
           } sum++ sum int min = sum; min sum if(sum == 0)
            min = 1; sum == 0 sum 0 min = 1 min 1 int max = sum + over; max sum + over sum over System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args 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 over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    }                                      
} 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 over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    }                                      
} Main
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 over = 0;
            
       int N = sc.nextInt();
       
       int a[] = new int[N];


    for(int i = 0;i < N;i++){       
       a[i] = sc.nextInt();
           
       if(a[i] >= 3200){
               over++;
       }

       for(int j = 0;j <= 7;j++){           
           if(400*j <= a[i] && a[i] < 400*(j+1)){
                flag[j] = true;
           }                                            
       }
       
    }
               
    int sum = 0;
       
    for(int i = 0;i < 8;i++){
        
           if(flag[i]){
               sum++;
           }
           
    }
       
       int min = sum;       
       if(sum == 0)
            min = 1;       

       int max = sum + over;       
       
       System.out.println(min + " " + max);
        
    }                                      
}