import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] color = new int[9]; color new int[9] 9 for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		} {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a >= 3600) {
				a = 3599;
			} a >= 3600 a 3600 {
				a = 3599;
			} a = 3599 a 3599 color[a / 400]++ color[a / 400] color a / 400 a 400 sc.close() sc.close sc int min = 0; min 0 for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		} int i = 0; int i = 0; i 0 i < color.length - 1 i color.length - 1 color.length color color.length 1 i++ i++ i {
			if (color[i] > 0) {
				min++;
			}
		} {
			if (color[i] > 0) {
				min++;
			}
		} if (color[i] > 0) {
				min++;
			} color[i] > 0 color[i] color i 0 {
				min++;
			} min++ min if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		} min == 0 min 0 {
			System.out.println("1 " + color[8]);
		} System.out.println("1 " + color[8]) System.out.println System.out System System.out "1 " + color[8] "1 " color[8] color 8 {
			System.out.println(min + " " + (min + color[8]));
		} System.out.println(min + " " + (min + color[8])) System.out.println System.out System System.out min + " " + (min + color[8]) min + " " + (min + color[8]) min " " (min + color[8]) min color[8] color 8 String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if (a >= 3600) {
				a = 3599;
			}
			color[a / 400]++;
		}
		sc.close();

		int min = 0;
		for (int i = 0; i < color.length - 1; i++) {
			if (color[i] > 0) {
				min++;
			}
		}
		if (min == 0) {
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(min + " " + (min + color[8]));
		}
	}
}
