import java.io.*;
import java.util.*;


public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} Main private static Scanner sc; sc private static Printer pr; pr private static void solve() {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	} solve {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] cnt = new int[13]; cnt new int[13] 13 for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();

			cnt[a / 400]++;
		} {
			int a = sc.nextInt();

			cnt[a / 400]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc cnt[a / 400]++ cnt[a / 400] cnt a / 400 a 400 int min = 0; min 0 for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		} int i = 0; int i = 0; i 0 i <= 7 i 7 i++ i++ i {
			if (cnt[i] > 0) {
				min++;
			}
		} {
			if (cnt[i] > 0) {
				min++;
			}
		} if (cnt[i] > 0) {
				min++;
			} cnt[i] > 0 cnt[i] cnt i 0 {
				min++;
			} min++ min int max = 0; max 0 for (int i = 8; i < 13; i++) {
			max += cnt[i];
		} int i = 8; int i = 8; i 8 i < 13 i 13 i++ i++ i {
			max += cnt[i];
		} {
			max += cnt[i];
		} max += cnt[i] max cnt[i] cnt i pr.printf("%d %d\n", Math.max(1, min), min + max) pr.printf pr "%d %d\n" Math.max(1, min) Math.max Math 1 min min + max min max // ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	} main {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	} sc = new Scanner(System.in) sc new Scanner(System.in) pr = new Printer(System.out) pr new Printer(System.out) solve() solve pr.close() pr.close pr sc.close() sc.close sc String[] args args private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	} Printer Printer(PrintStream out) {
			super(out);
		} Printer {
			super(out);
		} super(out) super out PrintStream out out PrintWriter public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
} Main
import java.io.*;
import java.util.*;


public class Main {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		int[] cnt = new int[13];
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();

			cnt[a / 400]++;
		}

		int min = 0;
		for (int i = 0; i <= 7; i++) {
			if (cnt[i] > 0) {
				min++;
			}
		}

		int max = 0;
		for (int i = 8; i < 13; i++) {
			max += cnt[i];
		}

		pr.printf("%d %d\n", Math.max(1, min), min + max);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
