import java.util.Scanner;

public class Main {
	public static void main(String[] args)  {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)  {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	}
} Main public static void main(String[] args)  {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	} main {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	} Scanner sc = new Scanner((System.in)); sc new Scanner((System.in)) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[]count = new int[9]; count new int[9] 9 int min = 0; min 0 int max = 0; max 0 int tmp = 0; tmp 0 for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		} {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		} tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 399 tmp 399 count[0] = 1 count[0] count 0 1 if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 799 tmp 799 count[1] = 1 count[1] count 1 1 if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 1199 tmp 1199 count[2] = 1 count[2] count 2 1 if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 1599 tmp 1599 count[3] = 1 count[3] count 3 1 if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 1999 tmp 1999 count[4] = 1 count[4] count 4 1 if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 2399 tmp 2399 count[5] = 1 count[5] count 5 1 if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 2799 tmp 2799 count[6] = 1 count[6] count 6 1 if(tmp <= 3199) 	count[7] = 1;
			else count[8]++; tmp <= 3199 tmp 3199 count[7] = 1 count[7] count 7 1 count[8]++ count[8] count 8 for(int i = 0; i < 8; i++)	min += count[i]; int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i min += count[i]; min += count[i] min count[i] count i if(min == 0) min =1; min == 0 min 0 min =1 min 1 for(int i = 0; i < 9; i++)	max += count[i]; int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i max += count[i]; max += count[i] max count[i] count i System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main {
	public static void main(String[] args)  {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	}
} public class Main {
	public static void main(String[] args)  {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args)  {
		Scanner sc = new Scanner((System.in));
		int n = sc.nextInt();
		int[]count = new int[9];
		int min = 0;
		int max = 0;
		int tmp = 0;
		for(int i = 0; i < n; i++) {
			tmp = sc.nextInt();
			if(tmp <= 399) 	count[0] = 1;
			else if(tmp <= 799) 	count[1] = 1;
			else if(tmp <= 1199) 	count[2] = 1;
			else if(tmp <= 1599) 	count[3] = 1;
			else if(tmp <= 1999) 	count[4] = 1;
			else if(tmp <= 2399) 	count[5] = 1;
			else if(tmp <= 2799) 	count[6] = 1;
			else if(tmp <= 3199) 	count[7] = 1;
			else count[8]++;
		}

		for(int i = 0; i < 8; i++)	min += count[i];
		if(min == 0) min =1;
		for(int i = 0; i < 9; i++)	max += count[i];

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

	}
}