import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		System.out.println(min + " " + max);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		System.out.println(min + " " + max);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		System.out.println(min + " " + max);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		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[] counts = new int[9]; counts new int[9] 9 for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		} {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		} int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc int pos = Math.min(8, rate / 400); pos Math.min(8, rate / 400) Math.min Math 8 rate / 400 rate 400 counts[pos]++ counts[pos] counts pos int min = 0; min 0 for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		} int i = 0; int i = 0; i 0 i < counts.length - 1 i counts.length - 1 counts.length counts counts.length 1 i++ i++ i {
			if (counts[i] > 0) {
				min++;
			}
		} {
			if (counts[i] > 0) {
				min++;
			}
		} if (counts[i] > 0) {
				min++;
			} counts[i] > 0 counts[i] counts i 0 {
				min++;
			} min++ min int max = min + counts[counts.length-1]; max min + counts[counts.length-1] min counts[counts.length-1] counts counts.length-1 counts.length counts counts.length 1 if (n > 0 && min == 0) {
			min = 1;
		} n > 0 && min == 0 n > 0 n 0 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 public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		System.out.println(min + " " + max);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		System.out.println(min + " " + max);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] counts = new int[9];
		for (int i = 0; i < n; i++) {
			int rate = sc.nextInt();
			int pos = Math.min(8, rate / 400);
			counts[pos]++;
		}

		int min = 0;
		for (int i = 0; i < counts.length - 1; i++) {
			if (counts[i] > 0) {
				min++;
			}
		}

		int max = min + counts[counts.length-1];
		if (n > 0 && min == 0) {
			min = 1;
		}
		System.out.println(min + " " + max);
	}
}