import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = 0; b 0 int c = 0; c 0 int d; d int [] in = new int [9]; in new int [9] 9 for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            } int i=0; int i=0; i 0 i<a i a i++ i++ i {d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            } {d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            } d = sc.nextInt()/400 d sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;} d<8 d 8 {if(in[d]==0){in[d]=1;}} if(in[d]==0){in[d]=1;} in[d]==0 in[d] in d 0 {in[d]=1;} in[d]=1 in[d] in d 1 {in[8]++;} in[8]++ in[8] in 8 for(int i=0;i<8;i++){b+=in[i];
                            } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {b+=in[i];
                            } {b+=in[i];
                            } b+=in[i] b in[i] in i c = b+in[8] c b+in[8] b in[8] in 8 b = Math.max(b,1) b Math.max(b,1) Math.max Math b 1 System.out.println(b + " " + c) System.out.println System.out System System.out b + " " + c b + " " + c b " " c String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();         
        int b = 0;
		int c = 0;
        int d;
		int [] in = new int [9];
        for(int i=0;i<a;i++){d = sc.nextInt()/400;
                             if(d<8){if(in[d]==0){in[d]=1;}}else{in[8]++;}
                            }
        for(int i=0;i<8;i++){b+=in[i];
                            }
        c = b+in[8];
        b = Math.max(b,1);
		System.out.println(b + " " + c);
	}
}
