import java.util.Scanner;
public class Main {
   public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   }

} import java.util.Scanner; Scanner java.util public class Main {
   public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   }

} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   } main {
	Scanner sc = new Scanner(System.in);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int []a = new int[n]; a new int[n] n int []c = new int[9]; c new int[9] 9 int cn = 0; cn 0 int min = 0; min 0 int max = 0; max 0 for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    	a[i] = sc.nextInt(); 
     } {
    	a[i] = sc.nextInt(); 
     } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for(int i=0; i<9; i++) {
     	c[i] = 0; 
      } int i=0; int i=0; i 0 i<9 i 9 i++ i++ i {
     	c[i] = 0; 
      } {
     	c[i] = 0; 
      } c[i] = 0 c[i] c i 0 sc.close() sc.close sc for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      } {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      } if(1<=a[i]&&a[i]<=399) {c[0]++;} 1<=a[i]&&a[i]<=399 1<=a[i] 1 a[i] a i a[i]<=399 a[i] a i 399 {c[0]++;} c[0]++ c[0] c 0 if(400<=a[i]&&a[i]<=799) {c[1]++;} 400<=a[i]&&a[i]<=799 400<=a[i] 400 a[i] a i a[i]<=799 a[i] a i 799 {c[1]++;} c[1]++ c[1] c 1 if(800<=a[i]&&a[i]<=1199) {c[2]++;} 800<=a[i]&&a[i]<=1199 800<=a[i] 800 a[i] a i a[i]<=1199 a[i] a i 1199 {c[2]++;} c[2]++ c[2] c 2 if(1200<=a[i]&&a[i]<=1599) {c[3]++;} 1200<=a[i]&&a[i]<=1599 1200<=a[i] 1200 a[i] a i a[i]<=1599 a[i] a i 1599 {c[3]++;} c[3]++ c[3] c 3 if(1600<=a[i]&&a[i]<=1999) {c[4]++;} 1600<=a[i]&&a[i]<=1999 1600<=a[i] 1600 a[i] a i a[i]<=1999 a[i] a i 1999 {c[4]++;} c[4]++ c[4] c 4 if(2000<=a[i]&&a[i]<=2399) {c[5]++;} 2000<=a[i]&&a[i]<=2399 2000<=a[i] 2000 a[i] a i a[i]<=2399 a[i] a i 2399 {c[5]++;} c[5]++ c[5] c 5 if(2400<=a[i]&&a[i]<=2799) {c[6]++;} 2400<=a[i]&&a[i]<=2799 2400<=a[i] 2400 a[i] a i a[i]<=2799 a[i] a i 2799 {c[6]++;} c[6]++ c[6] c 6 if(2800<=a[i]&&a[i]<=3199) {c[7]++;} 2800<=a[i]&&a[i]<=3199 2800<=a[i] 2800 a[i] a i a[i]<=3199 a[i] a i 3199 {c[7]++;} c[7]++ c[7] c 7 if(3200<=a[i]) {c[8]++;} 3200<=a[i] 3200 a[i] a i {c[8]++;} c[8]++ c[8] c 8 for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
     	if(c[i] != 0) {cn++;} 
      } {
     	if(c[i] != 0) {cn++;} 
      } if(c[i] != 0) {cn++;} c[i] != 0 c[i] c i 0 {cn++;} cn++ cn if(cn!=0) {min=cn;} cn!=0 cn 0 {min=cn;} min=cn min cn if(cn==0) {min=1;} cn==0 cn 0 {min=1;} min=1 min 1 max=cn+c[8] max cn+c[8] cn c[8] c 8 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);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   }

} public class Main {
   public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   }

} Main
import java.util.Scanner;
public class Main {
   public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     int n = sc.nextInt();
     int []a = new int[n];
     int []c = new int[9];
     int cn = 0;
     int min = 0; int max = 0;
     for(int i=0; i<n; i++) {
    	a[i] = sc.nextInt(); 
     }
     for(int i=0; i<9; i++) {
     	c[i] = 0; 
      }
 	
	sc.close();
	for(int i=0; i<n; i++) {
      if(1<=a[i]&&a[i]<=399) {c[0]++;}
      if(400<=a[i]&&a[i]<=799) {c[1]++;}
      if(800<=a[i]&&a[i]<=1199) {c[2]++;}
      if(1200<=a[i]&&a[i]<=1599) {c[3]++;}
      if(1600<=a[i]&&a[i]<=1999) {c[4]++;}
      if(2000<=a[i]&&a[i]<=2399) {c[5]++;}
      if(2400<=a[i]&&a[i]<=2799) {c[6]++;}
      if(2800<=a[i]&&a[i]<=3199) {c[7]++;}
      if(3200<=a[i]) {c[8]++;}
      }
	for(int i=0; i<8; i++) {
     	if(c[i] != 0) {cn++;} 
      }
	
	if(cn!=0) {min=cn;}
	if(cn==0) {min=1;}
	
	
	
	 max=cn+c[8];
    
   
	System.out.println(min+" "+max);
   }

}