import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int count3200 = 0; count3200 0 int[] array = {0, 0, 0, 0, 0, 0, 0, 0}; array {0, 0, 0, 0, 0, 0, 0, 0} 0 0 0 0 0 0 0 0 for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		} {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		} int temp = sc.nextInt(); temp sc.nextInt() sc.nextInt sc if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 1 && temp <= 399 temp >= 1 temp 1 temp <= 399 temp 399 {
				array[0] = 1;
			} array[0] = 1 array[0] array 0 1 if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 400 && temp <= 799 temp >= 400 temp 400 temp <= 799 temp 799 {
				array[1] = 1;
			} array[1] = 1 array[1] array 1 1 if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 800 && temp <= 1199 temp >= 800 temp 800 temp <= 1199 temp 1199 {
				array[2] = 1;
			} array[2] = 1 array[2] array 2 1 if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 1200 && temp <= 1599 temp >= 1200 temp 1200 temp <= 1599 temp 1599 {
				array[3] = 1;
			} array[3] = 1 array[3] array 3 1 if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 1600 && temp <= 1999 temp >= 1600 temp 1600 temp <= 1999 temp 1999 {
				array[4] = 1;
			} array[4] = 1 array[4] array 4 1 if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 2000 && temp <= 2399 temp >= 2000 temp 2000 temp <= 2399 temp 2399 {
				array[5] = 1;
			} array[5] = 1 array[5] array 5 1 if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 2400 && temp <= 2799 temp >= 2400 temp 2400 temp <= 2799 temp 2799 {
				array[6] = 1;
			} array[6] = 1 array[6] array 6 1 if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			} temp >= 2800 && temp <= 3199 temp >= 2800 temp 2800 temp <= 3199 temp 3199 {
				array[7] = 1;
			} array[7] = 1 array[7] array 7 1 if (temp >= 3200) {
				count3200++;
			} temp >= 3200 temp 3200 {
				count3200++;
			} count3200++ count3200 sc.close() sc.close sc int countColor = 0; countColor 0 for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if (array[i] == 1) {
				countColor++;
			}
		} {
			if (array[i] == 1) {
				countColor++;
			}
		} if (array[i] == 1) {
				countColor++;
			} array[i] == 1 array[i] array i 1 {
				countColor++;
			} countColor++ countColor int small = countColor; small countColor if (small == 0) {
			small = 1;
		} small == 0 small 0 {
			small = 1;
		} small = 1 small 1 int big = countColor + count3200; big countColor + count3200 countColor count3200 if (big > 100) {
			big = 100;
		} big > 100 big 100 {
			big = 100;
		} big = 100 big 100 String result = small + " " + big; result small + " " + big small + " " + big small " " big System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		sc.nextLine();
		int count3200 = 0;
		int[] array = {0, 0, 0, 0, 0, 0, 0, 0};
		for (int i = 0; i < count; i++) {
			int temp = sc.nextInt();
			if (temp >= 1 && temp <= 399) {
				array[0] = 1;
			} else if (temp >= 400 && temp <= 799) {
				array[1] = 1;
			} else if (temp >= 800 && temp <= 1199) {
				array[2] = 1;
			} else if (temp >= 1200 && temp <= 1599) {
				array[3] = 1;
			} else if (temp >= 1600 && temp <= 1999) {
				array[4] = 1;
			} else if (temp >= 2000 && temp <= 2399) {
				array[5] = 1;
			} else if (temp >= 2400 && temp <= 2799) {
				array[6] = 1;
			} else if (temp >= 2800 && temp <= 3199) {
				array[7] = 1;
			} else if (temp >= 3200) {
				count3200++;
			}
		}
		sc.close();
		int countColor = 0;
		for (int i = 0; i < 8; i++) {
			if (array[i] == 1) {
				countColor++;
			}
		}
		
		int small = countColor;
		if (small == 0) {
			small = 1;
		}
		int big = countColor + count3200;
		if (big > 100) {
			big = 100;
		}
		String result = small + " " + big;
		
		System.out.println(result);
	}
}