import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        System.out.println(min+" "+max);
 
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        System.out.println(min+" "+max);
 
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        System.out.println(min+" "+max);
 
    } main {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        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 B[] =new int[9]; B new int[9] 9 for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        } {
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        } A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i]<400 A[i] A i 400 {
                B[0]++;
            } B[0]++ B[0] B 0 if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 800 A[i] A i 800 B[1]++ B[1] B 1 if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 1200 A[i] A i 1200 B[2]++ B[2] B 2 if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 1600 A[i] A i 1600 B[3]++ B[3] B 3 if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 2000 A[i] A i 2000 B[4]++ B[4] B 4 if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 2400 A[i] A i 2400 B[5]++ B[5] B 5 if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 2800 A[i] A i 2800 B[6]++ B[6] B 6 if(A[i] < 3200) B[7]++;
            else B[8]++; A[i] < 3200 A[i] A i 3200 B[7]++ B[7] B 7 B[8]++ B[8] B 8 int min = 0; min 0 for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        } int i = 0 ; int i = 0 ; i 0 i < 8 i 8 ++i ++i i {
        if(B[i] != 0){
            min++;
            }
        } {
        if(B[i] != 0){
            min++;
            }
        } if(B[i] != 0){
            min++;
            } B[i] != 0 B[i] B i 0 {
            min++;
            } min++ min int max = min + B[8]; max min + B[8] min B[8] B 8 if(min == 0) min++; min == 0 min 0 min++ min 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) throws Exception {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        System.out.println(min+" "+max);
 
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        System.out.println(min+" "+max);
 
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A[] =new int[N];
		int B[] =new int[9];
        for(int i = 0; i < N; i++){
            A[i]=sc.nextInt();
            if(A[i]<400){
                B[0]++;
            }else if(A[i] < 800) B[1]++;
            else if(A[i] < 1200) B[2]++;
            else if(A[i] < 1600) B[3]++;
            else if(A[i] < 2000) B[4]++;
            else if(A[i] < 2400) B[5]++;
            else if(A[i] < 2800) B[6]++;
            else if(A[i] < 3200) B[7]++;
            else B[8]++;
        }
        
        int min = 0;
    
        for(int i = 0 ; i < 8 ; ++i){
        if(B[i] != 0){
            min++;
            }
        }
    
        int max = min + B[8];
        if(min == 0) min++;
    
        System.out.println(min+" "+max);
 
    }
}
