import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	}

} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] scoreList = new int[N]; scoreList new int[N] N for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			scoreList[i] = sc.nextInt();
		} {
			scoreList[i] = sc.nextInt();
		} scoreList[i] = sc.nextInt() scoreList[i] scoreList i sc.nextInt() sc.nextInt sc int[] rate = new int[9]; rate new int[9] 9 for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		} int score scoreList {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		} {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		} if (1 <= score && score < 400) {
				rate[0] = 1;
			} 1 <= score && score < 400 1 <= score 1 score score < 400 score 400 {
				rate[0] = 1;
			} rate[0] = 1 rate[0] rate 0 1 if (400 <= score && score < 800) {
				rate[1] = 1;
			} 400 <= score && score < 800 400 <= score 400 score score < 800 score 800 {
				rate[1] = 1;
			} rate[1] = 1 rate[1] rate 1 1 if (800 <= score && score < 1200) {
				rate[2] = 1;
			} 800 <= score && score < 1200 800 <= score 800 score score < 1200 score 1200 {
				rate[2] = 1;
			} rate[2] = 1 rate[2] rate 2 1 if (1200 <= score && score < 1600) {
				rate[3] = 1;
			} 1200 <= score && score < 1600 1200 <= score 1200 score score < 1600 score 1600 {
				rate[3] = 1;
			} rate[3] = 1 rate[3] rate 3 1 if (1600 <= score && score < 2000) {
				rate[4] = 1;
			} 1600 <= score && score < 2000 1600 <= score 1600 score score < 2000 score 2000 {
				rate[4] = 1;
			} rate[4] = 1 rate[4] rate 4 1 if (2000 <= score && score < 2400) {
				rate[5] = 1;
			} 2000 <= score && score < 2400 2000 <= score 2000 score score < 2400 score 2400 {
				rate[5] = 1;
			} rate[5] = 1 rate[5] rate 5 1 if (2400 <= score && score < 2800) {
				rate[6] = 1;
			} 2400 <= score && score < 2800 2400 <= score 2400 score score < 2800 score 2800 {
				rate[6] = 1;
			} rate[6] = 1 rate[6] rate 6 1 if (2800 <= score && score < 3200) {
				rate[7] = 1;
			} 2800 <= score && score < 3200 2800 <= score 2800 score score < 3200 score 3200 {
				rate[7] = 1;
			} rate[7] = 1 rate[7] rate 7 1 if (3200 <= score) {
				rate[8] += 1;
			} 3200 <= score 3200 score {
				rate[8] += 1;
			} rate[8] += 1 rate[8] rate 8 1 int min = 0; min 0 for (int i = 0; i < 8; i++) {
			min += rate[i];
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			min += rate[i];
		} {
			min += rate[i];
		} min += rate[i] min rate[i] rate i if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		} min == 0 && rate[8] > 0 min == 0 min 0 rate[8] > 0 rate[8] rate 8 0 {
			System.out.print(1 + " ");
		} System.out.print(1 + " ") System.out.print System.out System System.out 1 + " " 1 " " {
			System.out.print(min + " ");
		} System.out.print(min + " ") System.out.print System.out System System.out min + " " min " " int max = min + rate[8] ; max min + rate[8] min rate[8] rate 8 System.out.print(max) System.out.print System.out System System.out max String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	}

} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] scoreList = new int[N];
		for (int i = 0; i < N; i++) {
			scoreList[i] = sc.nextInt();
		}

		int[] rate = new int[9];
		for (int score : scoreList) {
			if (1 <= score && score < 400) {
				rate[0] = 1;
			}
			if (400 <= score && score < 800) {
				rate[1] = 1;
			}
			if (800 <= score && score < 1200) {
				rate[2] = 1;
			}
			if (1200 <= score && score < 1600) {
				rate[3] = 1;
			}
			if (1600 <= score && score < 2000) {
				rate[4] = 1;
			}
			if (2000 <= score && score < 2400) {
				rate[5] = 1;
			}
			if (2400 <= score && score < 2800) {
				rate[6] = 1;
			}
			if (2800 <= score && score < 3200) {
				rate[7] = 1;
			}
			if (3200 <= score) {
				rate[8] += 1;
			}
		}
		int min = 0;
		for (int i = 0; i < 8; i++) {
			min += rate[i];
		}
		if (min == 0 && rate[8] > 0) {
			System.out.print(1 + " ");
		} else {
			System.out.print(min + " ");
		}
		int max = min + rate[8] ;
		System.out.print(max);
	}

}
