import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	}

} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	} main {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int N = scn.nextInt(); N scn.nextInt() scn.nextInt scn int[] C = new int[9]; C new int[9] 9 for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		} {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		} int r = scn.nextInt(); r scn.nextInt() scn.nextInt scn if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			} r >3200 r 3200 {
				C[8]++;
			} C[8]++ C[8] C 8 {
				C[r/400]++;
			} C[r/400]++ C[r/400] C r/400 r 400 int min = 0 min 0 max = 0; max 0 for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if(C[i]>0)min++;
		} {
			if(C[i]>0)min++;
		} if(C[i]>0)min++; C[i]>0 C[i] C i 0 min++ min max = min + C[8] max min + C[8] min C[8] C 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) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int[] C = new int[9];
		for(int i = 0;i < N;i++) {
			int r = scn.nextInt();
			if(r >3200) {
				C[8]++;
			}else {
				C[r/400]++;
			}

		}
		int min = 0, max = 0;

		for(int i = 0;i < 8;i++) {
			if(C[i]>0)min++;
		}

		max = min + C[8];
		if(min==0)min++;
		System.out.println(min + " " + max);
	}

}
