import java.util.Scanner;

public class Main {

	int min=999999;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {

	int min=999999;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	}
} Main int min=999999; min 999999 public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N; N int a[] =new int[8]; a new int[8] 8 int over =0; over 0 N = sc.nextInt() N sc.nextInt() sc.nextInt sc for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		} {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		} int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			} rate <3200 rate 3200 {
				a[rate/400]++;
			} a[rate/400]++ a[rate/400] a rate/400 rate 400 {
				over++;
			} over++ over int min=0 ; min 0 for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if (a[i]>0) {
				min++;
			}
		} {
			if (a[i]>0) {
				min++;
			}
		} if (a[i]>0) {
				min++;
			} a[i]>0 a[i] a i 0 {
				min++;
			} min++ min if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		} min>0 min 0 {
			System.out.println(min+" "+(min+over));
		} System.out.println(min+" "+(min+over)) System.out.println System.out System System.out min+" "+(min+over) min+" "+(min+over) min " " (min+over) min over {
			System.out.println(1+" "+(over));
		} System.out.println(1+" "+(over)) System.out.println System.out System System.out 1+" "+(over) 1+" "+(over) 1 " " (over) String[] args args public class Main {

	int min=999999;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	}
} public class Main {

	int min=999999;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	}
} Main
import java.util.Scanner;

public class Main {

	int min=999999;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N;
		int a[] =new int[8];
		int over =0;
		N = sc.nextInt();
		for (int i=0;i<N;i++) {
			int rate = sc.nextInt();
			if (rate <3200) {
				a[rate/400]++;
			} else {
				over++;
			}
		}
		int min=0 ;
		for (int i=0;i<8;i++) {
			if (a[i]>0) {
				min++;
			}
		}
		if (min>0) {
			System.out.println(min+" "+(min+over));
		} else {
			System.out.println(1+" "+(over));
		}

	}
}