import java.util.Scanner;

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

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner cin = new Scanner(System.in)) {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	}

} Main public static void main(String[] args) {
		try (Scanner cin = new Scanner(System.in)) {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	} main {
		try (Scanner cin = new Scanner(System.in)) {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	} try (Scanner cin = new Scanner(System.in)) {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		} {
		} {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} Scanner cin = new Scanner(System.in) Scanner cin = new Scanner(System.in) new Scanner(System.in) boolean[] array = new boolean[8]; array new boolean[8] 8 int fullColor = 0; fullColor 0 cin.nextInt() cin.nextInt cin while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			} cin.hasNext() cin.hasNext cin {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			} int rate = cin.nextInt(); rate cin.nextInt() cin.nextInt cin if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 399 rate 399 {
					array[0] = true;
				} array[0] = true array[0] array 0 true if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 799 rate 799 {
					array[1] = true;
				} array[1] = true array[1] array 1 true if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 1199 rate 1199 {
					array[2] = true;
				} array[2] = true array[2] array 2 true if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 1599 rate 1599 {
					array[3] = true;
				} array[3] = true array[3] array 3 true if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 1999 rate 1999 {
					array[4] = true;
				} array[4] = true array[4] array 4 true if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 2399 rate 2399 {
					array[5] = true;
				} array[5] = true array[5] array 5 true if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 2799 rate 2799 {
					array[6] = true;
				} array[6] = true array[6] array 6 true if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				} rate <= 3199 rate 3199 {
					array[7] = true;
				} array[7] = true array[7] array 7 true {
					fullColor++;
				} fullColor++ fullColor int min = 0; min 0 int max = 0; max 0 for (boolean b : array) {
				if (b) {
					min++;
				}
			} boolean b array {
				if (b) {
					min++;
				}
			} {
				if (b) {
					min++;
				}
			} if (b) {
					min++;
				} b {
					min++;
				} min++ min max = min + fullColor max min + fullColor min fullColor if (min == 0) {
				min = 1;
			} 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) {
		try (Scanner cin = new Scanner(System.in)) {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	}

} public class Main {
	public static void main(String[] args) {
		try (Scanner cin = new Scanner(System.in)) {

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	}

} Main
import java.util.Scanner;

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

			boolean[] array = new boolean[8];
			int fullColor = 0;

			cin.nextInt();

			while (cin.hasNext()) {
				int rate = cin.nextInt();

				if (rate <= 399) {
					array[0] = true;
				} else if (rate <= 799) {
					array[1] = true;
				} else if (rate <= 1199) {
					array[2] = true;
				} else if (rate <= 1599) {
					array[3] = true;
				} else if (rate <= 1999) {
					array[4] = true;
				} else if (rate <= 2399) {
					array[5] = true;
				} else if (rate <= 2799) {
					array[6] = true;
				} else if (rate <= 3199) {
					array[7] = true;
				} else {
					fullColor++;
				}
			}

			int min = 0;
			int max = 0;

			for (boolean b : array) {
				if (b) {
					min++;
				}
			}

			max = min + fullColor;

			if (min == 0) {
				min = 1;
			}
			System.out.println(min + " " + max);
		} finally {
		}
	}

}
