import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int[] a = new int[9]; a new int[9] 9 for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		} int i=0 ; int i=0 ; i 0 i<n i n i++ i++ i {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		} {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		} int x = stdIn.nextInt(); x stdIn.nextInt() stdIn.nextInt stdIn switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			} x/400 x 400 case 0: 0 case 0: a[0]++ a[0] a 0 break; case 1: 1 case 1: a[1]++ a[1] a 1 break; case 2: 2 case 2: a[2]++ a[2] a 2 break; case 3: 3 case 3: a[3]++ a[3] a 3 break; case 4: 4 case 4: a[4]++ a[4] a 4 break; case 5: 5 case 5: a[5]++ a[5] a 5 break; case 6: 6 case 6: a[6]++ a[6] a 6 break; case 7: 7 case 7: a[7]++ a[7] a 7 break; if(x/400>7) {
				a[8]++;
			} x/400>7 x/400 x 400 7 {
				a[8]++;
			} a[8]++ a[8] a 8 int i=0; i 0 int range = 0; range 0 while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		} i<8 i 8 {
			if(a[i++]>0) {
				range++;
			}
		} if(a[i++]>0) {
				range++;
			} a[i++]>0 a[i++] a i++ i 0 {
				range++;
			} range++ range int min = range; min range int max = range + a[8]; max range + a[8] range a[8] a 8 if(range==0) {
			min = 1;
			max = a[8];
		} range==0 range 0 {
			min = 1;
			max = a[8];
		} min = 1 min 1 max = a[8] max a[8] a 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 stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int[] a = new int[9];
		for(int i=0 ; i<n;i++) {
			int x = stdIn.nextInt();
			switch(x/400) {
			case 0:a[0]++;	break;
			case 1:a[1]++;	break;
			case 2:a[2]++;	break;
			case 3:a[3]++;	break;
			case 4:a[4]++;	break;
			case 5:a[5]++;	break;
			case 6:a[6]++;	break;
			case 7:a[7]++;	break;
			}
			if(x/400>7) {
				a[8]++;
			}
		}
		int i=0;
		int range = 0;
		while(i<8) {
			if(a[i++]>0) {
				range++;
			}
		}
		int min = range;
		int max = range + a[8];
		if(range==0) {
			min = 1;
			max = a[8];
		}
		System.out.println(min+" "+max);
	}
}
