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

