import java.util.Scanner;
 
class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int rate[] = {0,0,0,0,0,0,0,0};
		int exCollers = 0;
		int N = sc.nextInt();
		int i = 0;
		int tmp = 0;
		int tmp2 = 0;
		while(i<N){
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		}
		int min = 0;
		for(int j=0;j<=7;j++){
			min += rate[j];
		}
		int max = min + exCollers;
		
		if(min == 0){
			min =1;
		}
		System.out.println(min + " " + max);
	}
 
} import java.util.Scanner; Scanner java.util class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int rate[] = {0,0,0,0,0,0,0,0};
		int exCollers = 0;
		int N = sc.nextInt();
		int i = 0;
		int tmp = 0;
		int tmp2 = 0;
		while(i<N){
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		}
		int min = 0;
		for(int j=0;j<=7;j++){
			min += rate[j];
		}
		int max = min + exCollers;
		
		if(min == 0){
			min =1;
		}
		System.out.println(min + " " + max);
	}
 
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int rate[] = {0,0,0,0,0,0,0,0};
		int exCollers = 0;
		int N = sc.nextInt();
		int i = 0;
		int tmp = 0;
		int tmp2 = 0;
		while(i<N){
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		}
		int min = 0;
		for(int j=0;j<=7;j++){
			min += rate[j];
		}
		int max = min + exCollers;
		
		if(min == 0){
			min =1;
		}
		System.out.println(min + " " + max);
	} main {
		Scanner sc = new Scanner(System.in);
		int rate[] = {0,0,0,0,0,0,0,0};
		int exCollers = 0;
		int N = sc.nextInt();
		int i = 0;
		int tmp = 0;
		int tmp2 = 0;
		while(i<N){
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		}
		int min = 0;
		for(int j=0;j<=7;j++){
			min += rate[j];
		}
		int max = min + exCollers;
		
		if(min == 0){
			min =1;
		}
		System.out.println(min + " " + max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int rate[] = {0,0,0,0,0,0,0,0}; rate {0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 int exCollers = 0; exCollers 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int i = 0; i 0 int tmp = 0; tmp 0 int tmp2 = 0; tmp2 0 while(i<N){
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		} i<N i N {
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		} tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc tmp2 = (int)tmp/400 tmp2 (int)tmp/400 (int)tmp 400 if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			} tmp2>=8 tmp2 8 {
				exCollers++;
			} exCollers++ exCollers {
				rate[tmp2]=1;
			} rate[tmp2]=1 rate[tmp2] rate tmp2 1 i++ i int min = 0; min 0 for(int j=0;j<=7;j++){
			min += rate[j];
		} int j=0; int j=0; j 0 j<=7 j 7 j++ j++ j {
			min += rate[j];
		} {
			min += rate[j];
		} min += rate[j] min rate[j] rate j int max = min + exCollers; max min + exCollers min exCollers if(min == 0){
			min =1;
		} min == 0 min 0 {
			min =1;
		} min =1 min 1 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args
import java.util.Scanner;
 
class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int rate[] = {0,0,0,0,0,0,0,0};
		int exCollers = 0;
		int N = sc.nextInt();
		int i = 0;
		int tmp = 0;
		int tmp2 = 0;
		while(i<N){
			tmp = sc.nextInt();
			tmp2 = (int)tmp/400;
			if(tmp2>=8){
				exCollers++;
			}else{
				rate[tmp2]=1;
			}
			i++;
		}
		int min = 0;
		for(int j=0;j<=7;j++){
			min += rate[j];
		}
		int max = min + exCollers;
		
		if(min == 0){
			min =1;
		}
		System.out.println(min + " " + max);
	}
 
}