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[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	}
} 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[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc sc.close() sc.close sc boolean[] b = new boolean[10]; b new boolean[10] 10 int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		} {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		} if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			} a[i] < 3200 a[i] a i 3200 {
				b[a[i] / 400] = true;
			} b[a[i] / 400] = true b[a[i] / 400] b a[i] / 400 a[i] a i 400 true {
				cnt++;
			} cnt++ cnt int min = 0; min 0 for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		} int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
			if (b[i]) {
				min++;
			}
		} {
			if (b[i]) {
				min++;
			}
		} if (b[i]) {
				min++;
			} b[i] b i {
				min++;
			} min++ min if (min == 0) {
			min++;
			cnt--;
		} min == 0 min 0 {
			min++;
			cnt--;
		} min++ min cnt-- cnt System.out.println(min + " " + (min + cnt)) System.out.println System.out System System.out min + " " + (min + cnt) min + " " + (min + cnt) min " " (min + cnt) min cnt 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[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	}
} 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[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();

		boolean[] b = new boolean[10];
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (a[i] < 3200) {
				b[a[i] / 400] = true;
			} else {
				cnt++;
			}
		}

		int min = 0;
		for (int i = 0; i < b.length; i++) {
			if (b[i]) {
				min++;
			}
		}
		if (min == 0) {
			min++;
			cnt--;
		}
		System.out.println(min + " " + (min + cnt));
	}
}
