import java.util.*;
import java.math.*;

class Main{       
   public static void main(String[] args){

     Scanner sc = new Scanner(System.in);  
      
     int color[] = {0,0,0,0,0,0,0,0};
     
   int N = sc.nextInt();
   int overcolor = 0;     
     
   for(int i = 0;i < N;i++){       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   }
     
     int sum = 0;
     for(int i = 0;i < 8;i++){
         if(color[i] > 0){
             sum++;
         }
     }     
     
     if(sum == 0){
         int min = 1;
         int max = overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
     if(sum > 0){
         int min = sum;
         int max = sum + overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
          
      
   }
}
        
         import java.util.*; util.* java import java.math.*; math.* java class Main{       
   public static void main(String[] args){

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

     Scanner sc = new Scanner(System.in);  
      
     int color[] = {0,0,0,0,0,0,0,0};
     
   int N = sc.nextInt();
   int overcolor = 0;     
     
   for(int i = 0;i < N;i++){       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   }
     
     int sum = 0;
     for(int i = 0;i < 8;i++){
         if(color[i] > 0){
             sum++;
         }
     }     
     
     if(sum == 0){
         int min = 1;
         int max = overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
     if(sum > 0){
         int min = sum;
         int max = sum + overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
          
      
   } main {

     Scanner sc = new Scanner(System.in);  
      
     int color[] = {0,0,0,0,0,0,0,0};
     
   int N = sc.nextInt();
   int overcolor = 0;     
     
   for(int i = 0;i < N;i++){       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   }
     
     int sum = 0;
     for(int i = 0;i < 8;i++){
         if(color[i] > 0){
             sum++;
         }
     }     
     
     if(sum == 0){
         int min = 1;
         int max = overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
     if(sum > 0){
         int min = sum;
         int max = sum + overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
          
      
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int color[] = {0,0,0,0,0,0,0,0}; color {0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int overcolor = 0; overcolor 0 for(int i = 0;i < N;i++){       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   } {       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     } int j = 0; int j = 0; j 0 j <= 7 j 7 j++ j++ j {
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     } {
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     } if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         } 400*j<= x && x < 400*(j+1) 400*j<= x 400*j 400 j x x < 400*(j+1) x 400*(j+1) 400 (j+1) j 1 {
             color[j]++;
         } color[j]++ color[j] color j if(x >= 3200){
         overcolor++;
     } x >= 3200 x 3200 {
         overcolor++;
     } overcolor++ overcolor int sum = 0; sum 0 for(int i = 0;i < 8;i++){
         if(color[i] > 0){
             sum++;
         }
     } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
         if(color[i] > 0){
             sum++;
         }
     } {
         if(color[i] > 0){
             sum++;
         }
     } if(color[i] > 0){
             sum++;
         } color[i] > 0 color[i] color i 0 {
             sum++;
         } sum++ sum if(sum == 0){
         int min = 1;
         int max = overcolor;
         System.out.println(min + " " + max);
         return;
     } sum == 0 sum 0 {
         int min = 1;
         int max = overcolor;
         System.out.println(min + " " + max);
         return;
     } int min = 1; min 1 int max = overcolor; max overcolor System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max return; if(sum > 0){
         int min = sum;
         int max = sum + overcolor;
         System.out.println(min + " " + max);
         return;
     } sum > 0 sum 0 {
         int min = sum;
         int max = sum + overcolor;
         System.out.println(min + " " + max);
         return;
     } int min = sum; min sum int max = sum + overcolor; max sum + overcolor sum overcolor System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max return; String[] args args
import java.util.*;
import java.math.*;

class Main{       
   public static void main(String[] args){

     Scanner sc = new Scanner(System.in);  
      
     int color[] = {0,0,0,0,0,0,0,0};
     
   int N = sc.nextInt();
   int overcolor = 0;     
     
   for(int i = 0;i < N;i++){       
     int x = sc.nextInt();
     for(int j = 0;j <= 7;j++){
         if(400*j<= x && x < 400*(j+1)){
             color[j]++;
         }        
     }
     if(x >= 3200){
         overcolor++;
     }
   }
     
     int sum = 0;
     for(int i = 0;i < 8;i++){
         if(color[i] > 0){
             sum++;
         }
     }     
     
     if(sum == 0){
         int min = 1;
         int max = overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
     if(sum > 0){
         int min = sum;
         int max = sum + overcolor;
         System.out.println(min + " " + max);
         return;
     }
     
          
      
   }
}
        
        