import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

		System.out.println(min + " " + max);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Set; Set java.util public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

		System.out.println(min + " " + max);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

		System.out.println(min + " " + max);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

		System.out.println(min + " " + max);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int rate[] = new int[9]; rate new int[9] 9 for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		} {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		} int a = Integer.parseInt(str[i]); a Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 400 a 400 {
				rate[0]++;
			} rate[0]++ rate[0] rate 0 if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 800 a 800 {
				rate[1]++;
			} rate[1]++ rate[1] rate 1 if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 1200 a 1200 {
				rate[2]++;
			} rate[2]++ rate[2] rate 2 if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 1600 a 1600 {
				rate[3]++;
			} rate[3]++ rate[3] rate 3 if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 2000 a 2000 {
				rate[4]++;
			} rate[4]++ rate[4] rate 4 if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 2400 a 2400 {
				rate[5]++;
			} rate[5]++ rate[5] rate 5 if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 2800 a 2800 {
				rate[6]++;
			} rate[6]++ rate[6] rate 6 if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			} a < 3200 a 3200 {
				rate[7]++;
			} rate[7]++ rate[7] rate 7 {
				rate[8]++;
			} rate[8]++ rate[8] rate 8 int count = 0; count 0 for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if (rate[i] != 0) {
				count++;
			}
		} {
			if (rate[i] != 0) {
				count++;
			}
		} if (rate[i] != 0) {
				count++;
			} rate[i] != 0 rate[i] rate i 0 {
				count++;
			} count++ count int max = 0; max 0 int min = 0; min 0 if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		} rate[8] != 0 rate[8] rate 8 0 {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} max = count + rate[8] max count + rate[8] count rate[8] rate 8 min = (count == 0) ? 1 : count min (count == 0) ? 1 : count (count == 0) count 0 1 count {
			max = count;
			min = count;
		} max = count max count min = count min count 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) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

		System.out.println(min + " " + max);
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

		System.out.println(min + " " + max);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int rate[] = new int[9];
		for (int i = 0; i < n; i++) {
			int a = Integer.parseInt(str[i]);

			if (a < 400) {
				rate[0]++;
			} else if (a < 800) {
				rate[1]++;
			} else if (a < 1200) {
				rate[2]++;
			} else if (a < 1600) {
				rate[3]++;
			} else if (a < 2000) {
				rate[4]++;
			} else if (a < 2400) {
				rate[5]++;
			} else if (a < 2800) {
				rate[6]++;
			} else if (a < 3200) {
				rate[7]++;
			} else {
				rate[8]++;
			}
		}

		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (rate[i] != 0) {
				count++;
			}
		}

		int max = 0;
		int min = 0;
		if (rate[8] != 0) {
			max = count + rate[8];
			min = (count == 0) ? 1 : count;
		} else {
			max = count;
			min = count;
		}

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