

import java.util.Scanner;

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

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	}

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

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	}

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

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	} main {
		Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int a = 0; a 0 boolean[] b = new boolean[8]; b new boolean[8] 8 int count = 0; count 0 for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		} {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		} a = Integer.parseInt(sc.next()) a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 3200 a 3200 {
				count++;
			} count++ count if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 2800 a 2800 {
				b[7] = true;
			} b[7] = true b[7] b 7 true if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 2400 a 2400 {
				b[6] = true;
			} b[6] = true b[6] b 6 true if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 2000 a 2000 {
				b[5] = true;
			} b[5] = true b[5] b 5 true if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 1600 a 1600 {
				b[4] = true;
			} b[4] = true b[4] b 4 true if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 1200 a 1200 {
				b[3] = true;
			} b[3] = true b[3] b 3 true if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 800 a 800 {
				b[2] = true;
			} b[2] = true b[2] b 2 true if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			} a >= 400 a 400 {
				b[1] = true;
			} b[1] = true b[1] b 1 true {
				b[0] = true;
			} b[0] = true b[0] b 0 true int min = 0; min 0 for (boolean f : b) {
			if (f)
				min++;
		} boolean f b {
			if (f)
				min++;
		} {
			if (f)
				min++;
		} if (f)
				min++; f min++ min if (min == 0) {
			min = 1;
			count--;
		} min == 0 min 0 {
			min = 1;
			count--;
		} min = 1 min 1 count-- count System.out.println(min + " " + (min + count)) System.out.println System.out System System.out min + " " + (min + count) min + " " + (min + count) min " " (min + count) min count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	}

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

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	}

} Main


import java.util.Scanner;

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

		int n = Integer.parseInt(sc.next());
		int a = 0;
		boolean[] b = new boolean[8];
		int count = 0;

		for (int i = 0; i < n; i++) {
			a = Integer.parseInt(sc.next());

			if (a >= 3200) {
				count++;
			} else if (a >= 2800) {
				b[7] = true;
			} else if (a >= 2400) {
				b[6] = true;
			} else if (a >= 2000) {
				b[5] = true;
			} else if (a >= 1600) {
				b[4] = true;
			} else if (a >= 1200) {
				b[3] = true;
			} else if (a >= 800) {
				b[2] = true;
			} else if (a >= 400) {
				b[1] = true;
			} else {
				b[0] = true;
			}
		}

		int min = 0;
		for (boolean f : b) {
			if (f)
				min++;
		}

		if (min == 0) {
			min = 1;
			count--;
		}

		System.out.println(min + " " + (min + count));

	}

}
