import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] clr = new int[8]; clr new int[8] 8 int free = 0; free 0 for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		} {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			} a >= 3200 a 3200 {
				free++;
			} free++ free {
				clr[a / 400] = 1;
			} clr[a / 400] = 1 clr[a / 400] clr a / 400 a 400 1 int min = 0; min 0 for (int i : clr) {
			min += i;
		} int i clr {
			min += i;
		} {
			min += i;
		} min += i min i int max = min; max min if (min < 1) {
			min = 1;
		} min < 1 min 1 {
			min = 1;
		} min = 1 min 1 for (int i = 0; i < free; i++) {
			max++;
		} int i = 0; int i = 0; i 0 i < free i free i++ i++ i {
			max++;
		} {
			max++;
		} max++ max System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] clr = new int[8];
		int free = 0;
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3200) {
				free++;
			} else {
				clr[a / 400] = 1;
			}
		}

		int min = 0;
		for (int i : clr) {
			min += i;
		}

		int max = min;

		if (min < 1) {
			min = 1;
		}

		for (int i = 0; i < free; i++) {
			max++;
		}

		System.out.println(min + " " + max);
		sc.close();
	}
}
