import java.util.*;

public class Main{

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
        int N  = sc.nextInt();
        int hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          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);
        int N  = sc.nextInt();
        int hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          System.out.println(Min + " " + Max);
        
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
        int N  = sc.nextInt();
        int hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          System.out.println(Min + " " + Max);
        
	} main {

		Scanner sc = new Scanner(System.in);
        int N  = sc.nextInt();
        int hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          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 hai = 0; hai 0 int cha = 0; cha 0 int midori = 0; midori 0 int mizu = 0; mizu 0 int ao = 0; ao 0 int ki = 0; ki 0 int daidai = 0; daidai 0 int aka = 0; aka 0 int free = 0; free 0 for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        } {
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 1 && a <= 399 && hai == 0 a >= 1 && a <= 399 && hai == 0 a >= 1 a 1 a <= 399 a 399 hai == 0 hai 0 {
            hai++;
          } hai++ hai if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 400 && a <= 799 && cha == 0 a >= 400 && a <= 799 && cha == 0 a >= 400 a 400 a <= 799 a 799 cha == 0 cha 0 {
            cha++;
          } cha++ cha if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 800 && a <= 1199 && midori == 0 a >= 800 && a <= 1199 && midori == 0 a >= 800 a 800 a <= 1199 a 1199 midori == 0 midori 0 {
            midori++;
          } midori++ midori if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 1200 && a <= 1599 && mizu == 0 a >= 1200 && a <= 1599 && mizu == 0 a >= 1200 a 1200 a <= 1599 a 1599 mizu == 0 mizu 0 {
            mizu++;
          } mizu++ mizu if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 1600 && a <= 1999 && ao == 0 a >= 1600 && a <= 1999 && ao == 0 a >= 1600 a 1600 a <= 1999 a 1999 ao == 0 ao 0 {
            ao++;
          } ao++ ao if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 2000 && a <= 2399 && ki == 0 a >= 2000 && a <= 2399 && ki == 0 a >= 2000 a 2000 a <= 2399 a 2399 ki == 0 ki 0 {
            ki++;
          } ki++ ki if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 2400 && a <= 2799 && daidai == 0 a >= 2400 && a <= 2799 && daidai == 0 a >= 2400 a 2400 a <= 2799 a 2799 daidai == 0 daidai 0 {
            daidai++;
          } daidai++ daidai if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          } a >= 2800 && a <= 3199 && aka == 0 a >= 2800 && a <= 3199 && aka == 0 a >= 2800 a 2800 a <= 3199 a 3199 aka == 0 aka 0 {
            aka++;
          } aka++ aka if(a >= 3200){
            free++;
          } a >= 3200 a 3200 {
            free++;
          } free++ free int Min = hai + cha + midori + mizu + ao + ki + daidai + aka; Min hai + cha + midori + mizu + ao + ki + daidai + aka daidai ki ao mizu midori hai + cha + midori + mizu + ao + ki + daidai + aka hai cha midori mizu ao ki daidai aka int Max = 0; Max 0 if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         } Min != 0 Min 0 {
           Max = Min + free;
         } Max = Min + free Max Min + free Min free {
           Min = 1;
           Max = N;
         } Min = 1 Min 1 Max = N Max N 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 hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          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 hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          System.out.println(Min + " " + Max);
        
	}
} Main
import java.util.*;

public class Main{

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
        int N  = sc.nextInt();
        int hai = 0;
        int cha = 0;
        int midori = 0;
        int mizu = 0;
        int ao = 0;
        int ki = 0;
        int daidai = 0;
        int aka = 0;
        int free = 0;
        
        for(int i = 0; i < N; i++){
          int a = sc.nextInt();
          if(a >= 1 && a <= 399 && hai == 0){
            hai++;
          }else if(a >= 400 && a <= 799 && cha == 0){
            cha++;
          }else if(a >= 800 && a <= 1199 && midori == 0){
            midori++;
          }else if(a >= 1200 && a <= 1599 && mizu == 0){
            mizu++;
          }else if(a >= 1600 && a <= 1999 && ao == 0){
            ao++;
          }else if(a >= 2000 && a <= 2399 && ki == 0){
            ki++;
          }else if(a >= 2400 && a <= 2799 && daidai == 0){
            daidai++;
          }else if(a >= 2800 && a <= 3199 && aka == 0){
            aka++;
          }else if(a >= 3200){
            free++;
          }  
        }
         
         int Min = hai + cha + midori + mizu + ao + ki + daidai + aka;
         int Max = 0;
         if(Min != 0){
           Max = Min + free;
         }else{
           Min = 1;
           Max = N;
         }
          System.out.println(Min + " " + Max);
        
	}
}