import java.util.*;
 
public class Main {
 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			System.out.println(min + " " + max);
		}
	}
} import java.util.*; util.* java public class Main {
 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			System.out.println(min + " " + max);
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			System.out.println(min + " " + max);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			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[] rate = new int[8]; rate new int[8] 8 int hi = 0; hi 0 for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		} {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		} int col = sc.nextInt(); col sc.nextInt() sc.nextInt sc if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 400 col 400 {
				rate[0]++;
			} rate[0]++ rate[0] rate 0 if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 800 col 800 {
				rate[1]++;
			} rate[1]++ rate[1] rate 1 if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 1200 col 1200 {
				rate[2]++;
			} rate[2]++ rate[2] rate 2 if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 1600 col 1600 {
				rate[3]++;
			} rate[3]++ rate[3] rate 3 if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 2000 col 2000 {
				rate[4]++;
			} rate[4]++ rate[4] rate 4 if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 2400 col 2400 {
				rate[5]++;
			} rate[5]++ rate[5] rate 5 if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 2800 col 2800 {
				rate[6]++;
			} rate[6]++ rate[6] rate 6 if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			} col < 3200 col 3200 {
				rate[7]++;
			} rate[7]++ rate[7] rate 7 {
				hi++;
			} hi++ hi int min = 0; min 0 for (int i : rate) {
			if (i != 0) {
				min++;
			}
		} int i rate {
			if (i != 0) {
				min++;
			}
		} {
			if (i != 0) {
				min++;
			}
		} if (i != 0) {
				min++;
			} i != 0 i 0 {
				min++;
			} min++ min if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			System.out.println(min + " " + max);
		} hi != 0 && min == 0 hi != 0 hi 0 min == 0 min 0 {
			System.out.println(1 + " " + hi);
		} System.out.println(1 + " " + hi) System.out.println System.out System System.out 1 + " " + hi 1 + " " + hi 1 " " hi {
			int max = min + hi;
			System.out.println(min + " " + max);
		} int max = min + hi; max min + hi min hi 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[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			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[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			System.out.println(min + " " + max);
		}
	}
} Main
import java.util.*;
 
public class Main {
 
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] rate = new int[8];
		int hi = 0;
		for (int i = 0; i < N; i++) {
			int col = sc.nextInt();
			if (col < 400) {
				rate[0]++;
			} else if (col < 800) {
				rate[1]++;
			} else if (col < 1200) {
				rate[2]++;
			} else if (col < 1600) {
				rate[3]++;
			} else if (col < 2000) {
				rate[4]++;
			} else if (col < 2400) {
				rate[5]++;
			} else if (col < 2800) {
				rate[6]++;
			} else if (col < 3200) {
				rate[7]++;
			} else {
				hi++;
			}
		}
		int min = 0;
		for (int i : rate) {
			if (i != 0) {
				min++;
			}
		}
		if (hi != 0 && min == 0) {
			System.out.println(1 + " " + hi);
		} else {
			int max = min + hi;
			System.out.println(min + " " + max);
		}
	}
}