import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} Main InputStream in = System.in; in System.in System System.in PrintStream out = System.out; out System.out System System.out public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	} _main {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	} Scanner sc = new Scanner(in); sc new Scanner(in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] a = nextIntArray(sc, N); a nextIntArray(sc, N) nextIntArray sc N sc.close() sc.close sc int[] colors = new int[8]; colors new int[8] 8 int oth = 0; oth 0 for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		} {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		} if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 399 a[i] a i 399 {
				colors[0]++;
			} colors[0]++ colors[0] colors 0 if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 799 a[i] a i 799 {
				colors[1]++;
			} colors[1]++ colors[1] colors 1 if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 1199 a[i] a i 1199 {
				colors[2]++;
			} colors[2]++ colors[2] colors 2 if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 1599 a[i] a i 1599 {
				colors[3]++;
			} colors[3]++ colors[3] colors 3 if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 1999 a[i] a i 1999 {
				colors[4]++;
			} colors[4]++ colors[4] colors 4 if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 2399 a[i] a i 2399 {
				colors[5]++;
			} colors[5]++ colors[5] colors 5 if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 2799 a[i] a i 2799 {
				colors[6]++;
			} colors[6]++ colors[6] colors 6 if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			} a[i] <= 3199 a[i] a i 3199 {
				colors[7]++;
			} colors[7]++ colors[7] colors 7 {
				oth++;
			} oth++ oth int cnt = 0; cnt 0 for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if (colors[i] != 0) {
				cnt++;
			}
		} {
			if (colors[i] != 0) {
				cnt++;
			}
		} if (colors[i] != 0) {
				cnt++;
			} colors[i] != 0 colors[i] colors i 0 {
				cnt++;
			} cnt++ cnt int ansMin ansMin ansMax; ansMax if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		} cnt == 0 cnt 0 {
			ansMin = 1;
		} ansMin = 1 ansMin 1 {
			ansMin = cnt;
		} ansMin = cnt ansMin cnt ansMax = cnt + oth ansMax cnt + oth cnt oth out.print(ansMin) out.print out ansMin out.print(" ") out.print out " " out.println(ansMax) out.println out ansMax String[] args args public static void main(String[] args) {
		new Main()._main(args);
	} main {
		new Main()._main(args);
	} new Main()._main(args) new Main()._main new Main() args String[] args args @SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} nextIntArray {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} int[] result = new int[n]; result new int[n] n for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			result[i] = sc.nextInt();
		} {
			result[i] = sc.nextInt();
		} result[i] = sc.nextInt() result[i] result i sc.nextInt() sc.nextInt sc return result; result Scanner sc sc int n n @SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} nextIntArray1origin {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	} int[] result = new int[n + 1]; result new int[n + 1] n + 1 n 1 for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			result[i] = sc.nextInt();
		} {
			result[i] = sc.nextInt();
		} result[i] = sc.nextInt() result[i] result i sc.nextInt() sc.nextInt sc return result; result Scanner sc sc int n n public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();
		int[] a = nextIntArray(sc, N);

		sc.close();

		int[] colors = new int[8];
		int oth = 0;

		for (int i = 0; i < N; i++) {
			if (a[i] <= 399) {
				colors[0]++;
			} else if (a[i] <= 799) {
				colors[1]++;
			} else if (a[i] <= 1199) {
				colors[2]++;
			} else if (a[i] <= 1599) {
				colors[3]++;
			} else if (a[i] <= 1999) {
				colors[4]++;
			} else if (a[i] <= 2399) {
				colors[5]++;
			} else if (a[i] <= 2799) {
				colors[6]++;
			} else if (a[i] <= 3199) {
				colors[7]++;
			} else {
				oth++;
			}
		}

		int cnt = 0;
		for (int i = 0; i < 8; i++) {
			if (colors[i] != 0) {
				cnt++;
			}
		}

		int ansMin, ansMax;
		if (cnt == 0) {
			ansMin = 1;
		} else {
			ansMin = cnt;
		}

		ansMax = cnt + oth;

		out.print(ansMin);
		out.print(" ");
		out.println(ansMax);

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray(Scanner sc, int n) {
		int[] result = new int[n];
		for (int i = 0; i < n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}

	@SuppressWarnings("unused")
	private int[] nextIntArray1origin(Scanner sc, int n) {
		int[] result = new int[n + 1];
		for (int i = 1; i <= n; i++) {
			result[i] = sc.nextInt();
		}
		return result;
	}
}
