
import java.util.*;

public class Main {

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

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	}
} import java.util.*; util.* java public class Main {

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

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int r[] = new int[9]; r new int[9] 9 for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		} {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		} int v = sc.nextInt(); v sc.nextInt() sc.nextInt sc if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<400 v 400 {
				r[0]++;
			} r[0]++ r[0] r 0 if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<800 v 800 {
				r[1]++;
			} r[1]++ r[1] r 1 if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<1200 v 1200 {
				r[2]++;
			} r[2]++ r[2] r 2 if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<1600 v 1600 {
				r[3]++;
			} r[3]++ r[3] r 3 if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<2000 v 2000 {
				r[4]++;
			} r[4]++ r[4] r 4 if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<2400 v 2400 {
				r[5]++;
			} r[5]++ r[5] r 5 if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<2800 v 2800 {
				r[6]++;
			} r[6]++ r[6] r 6 if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			} v<3200 v 3200 {
				r[7]++;
			} r[7]++ r[7] r 7 {
				r[8]++;
			} r[8]++ r[8] r 8 int min = 0; min 0 int max = 0; max 0 int s = 0; s 0 for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		} {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		} if(r[i]>0) {
				min++;
			}else {
				s++;
			} r[i]>0 r[i] r i 0 {
				min++;
			} min++ min {
				s++;
			} s++ s if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		} min==0 min 0 {
			min = 1;
			max = r[8];
		} min = 1 min 1 max = r[8] max r[8] r 8 {
			max = min + r[8];
		} max = min + r[8] max min + r[8] min r[8] r 8 System.out.println(min+" "+max) System.out.println System.out System System.out min+" "+max min+" "+max min " " max sc.close() sc.close sc public class Main {

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

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	}
} public class Main {

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

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	}
} Main

import java.util.*;

public class Main {

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

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int r[] = new int[9];
		for(int i=0; i<n; i++) {
			int v = sc.nextInt();
			if(v<400) {
				r[0]++;
			}else if(v<800) {
				r[1]++;
			}else if(v<1200) {
				r[2]++;
			}else if(v<1600) {
				r[3]++;
			}else if(v<2000) {
				r[4]++;
			}else if(v<2400) {
				r[5]++;
			}else if(v<2800) {
				r[6]++;
			}else if(v<3200) {
				r[7]++;
			}else {
				r[8]++;
			}
		}
		int min = 0;
		int max = 0;
		int s = 0;
		for(int i=0; i<8; i++) {
			if(r[i]>0) {
				min++;
			}else {
				s++;
			}
		}
		if(min==0) {
			min = 1;
			max = r[8];
		}else {
			max = min + r[8];
		}

		System.out.println(min+" "+max);
		sc.close();
	}
}
