import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), a, ans = 0, tmp[] = new int[9];
		for (int i = 0; i < N; ++i) {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		}
		sc.close();
		for (int i = 0; i < 8; ++i) {
			if (tmp[i] > 0) ++ans;
		}
		if (ans == 0) System.out.print(1);
		else System.out.print(ans);
		System.out.print(" " + (ans + tmp[8]));
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), a, ans = 0, tmp[] = new int[9];
		for (int i = 0; i < N; ++i) {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		}
		sc.close();
		for (int i = 0; i < 8; ++i) {
			if (tmp[i] > 0) ++ans;
		}
		if (ans == 0) System.out.print(1);
		else System.out.print(ans);
		System.out.print(" " + (ans + tmp[8]));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), a, ans = 0, tmp[] = new int[9];
		for (int i = 0; i < N; ++i) {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		}
		sc.close();
		for (int i = 0; i < 8; ++i) {
			if (tmp[i] > 0) ++ans;
		}
		if (ans == 0) System.out.print(1);
		else System.out.print(ans);
		System.out.print(" " + (ans + tmp[8]));
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), a, ans = 0, tmp[] = new int[9];
		for (int i = 0; i < N; ++i) {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		}
		sc.close();
		for (int i = 0; i < 8; ++i) {
			if (tmp[i] > 0) ++ans;
		}
		if (ans == 0) System.out.print(1);
		else System.out.print(ans);
		System.out.print(" " + (ans + tmp[8]));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt() N sc.nextInt() sc.nextInt sc a a ans = 0 ans 0 tmp[] = new int[9]; tmp new int[9] 9 for (int i = 0; i < N; ++i) {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		} {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400]; a >= 3200 a 3200 ++tmp[8] tmp[8] tmp 8 ++tmp[a / 400] tmp[a / 400] tmp a / 400 a 400 sc.close() sc.close sc for (int i = 0; i < 8; ++i) {
			if (tmp[i] > 0) ++ans;
		} int i = 0; int i = 0; i 0 i < 8 i 8 ++i ++i i {
			if (tmp[i] > 0) ++ans;
		} {
			if (tmp[i] > 0) ++ans;
		} if (tmp[i] > 0) ++ans; tmp[i] > 0 tmp[i] tmp i 0 ++ans ans if (ans == 0) System.out.print(1);
		else System.out.print(ans); ans == 0 ans 0 System.out.print(1) System.out.print System.out System System.out 1 System.out.print(ans) System.out.print System.out System System.out ans System.out.print(" " + (ans + tmp[8])) System.out.print System.out System System.out " " + (ans + tmp[8]) " " (ans + tmp[8]) ans tmp[8] tmp 8 String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt(), a, ans = 0, tmp[] = new int[9];
		for (int i = 0; i < N; ++i) {
			a = sc.nextInt();
			if (a >= 3200) ++tmp[8];
			else ++tmp[a / 400];
		}
		sc.close();
		for (int i = 0; i < 8; ++i) {
			if (tmp[i] > 0) ++ans;
		}
		if (ans == 0) System.out.print(1);
		else System.out.print(ans);
		System.out.print(" " + (ans + tmp[8]));
	}
}