import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		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[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		System.out.println(min + " " + max);
	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		System.out.println(min + " " + max);
	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		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[] color = new int[8]; color new int[8] 8 int free =0; free 0 int min=0; min 0 int max=0; max 0 for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		} int i=1; int i=1; i 1 i<=n i n i++ i++ i {
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		} {
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		} int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 1 <= rate && rate <= 399 1 <= rate 1 rate rate <= 399 rate 399 {
				color[0]++;
			} color[0]++ color[0] color 0 if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 400 <= rate && rate <= 799 400 <= rate 400 rate rate <= 799 rate 799 {
				color[1]++;
			} color[1]++ color[1] color 1 if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 800 <= rate && rate <= 1199 800 <= rate 800 rate rate <= 1199 rate 1199 {
				color[2]++;
			} color[2]++ color[2] color 2 if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 1200 <= rate && rate <= 1599 1200 <= rate 1200 rate rate <= 1599 rate 1599 {
				color[3]++;
			} color[3]++ color[3] color 3 if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 1600 <= rate && rate <= 1999 1600 <= rate 1600 rate rate <= 1999 rate 1999 {
				color[4]++;
			} color[4]++ color[4] color 4 if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 2000 <= rate && rate <= 2399 2000 <= rate 2000 rate rate <= 2399 rate 2399 {
				color[5]++;
			} color[5]++ color[5] color 5 if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 2400 <= rate && rate <= 2799 2400 <= rate 2400 rate rate <= 2799 rate 2799 {
				color[6]++;
			} color[6]++ color[6] color 6 if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			} 2800 <= rate && rate <= 3199 2800 <= rate 2800 rate rate <= 3199 rate 3199 {
				color[7]++;
			} color[7]++ color[7] color 7 {
				free++;
			} free++ free for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		} int i=0; int i=0; i 0 i < color.length i color.length color color.length i++ i++ i {
			if (color[i] > 0 ){
				min++;
			}
		} {
			if (color[i] > 0 ){
				min++;
			}
		} if (color[i] > 0 ){
				min++;
			} color[i] > 0 color[i] color i 0 {
				min++;
			} min++ min max = min + free max min + free min free if (min == 0){
			min = 1;
		} min == 0 min 0 {
			min = 1;
		} min = 1 min 1 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[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		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[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		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[] color = new int[8];
		int free =0;
		int min=0;
		int max=0;

		for (int i=1; i<=n; i++){
			int rate = sc.nextInt();
			if (1 <= rate && rate <= 399){
				color[0]++;
			} else if (400 <= rate && rate <= 799){
				color[1]++;
			} else if (800 <= rate && rate <= 1199){
				color[2]++;
			} else if (1200 <= rate && rate <= 1599){
				color[3]++;
			} else if (1600 <= rate && rate <= 1999){
				color[4]++;
			} else if (2000 <= rate && rate <= 2399){
				color[5]++;
			} else if (2400 <= rate && rate <= 2799){
				color[6]++;
			} else if (2800 <= rate && rate <= 3199){
				color[7]++;
			} else {
				free++;
			}
		}

		for (int i=0; i < color.length; i++){
			if (color[i] > 0 ){
				min++;
			}
		}
		max = min + free;
		if (min == 0){
			min = 1;
		}
		System.out.println(min + " " + max);
	}

}
