import java.util.*;

// ABC 64-C
// https://beta.atcoder.jp/contests/abc064/tasks/abc064_c

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	} main {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int[] nums = new int[9]; nums new int[9] 9 for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		} {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		} int a = in.nextInt(); a in.nextInt() in.nextInt in if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			} a >= 3200 a 3200 {
				nums[8]++;
			} nums[8]++ nums[8] nums 8 {
				nums[a / 400]++;
			} nums[a / 400]++ nums[a / 400] nums a / 400 a 400 int count = 0; count 0 for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if (nums[i] > 0) {
				count++;
			}
		} {
			if (nums[i] > 0) {
				count++;
			}
		} if (nums[i] > 0) {
				count++;
			} nums[i] > 0 nums[i] nums i 0 {
				count++;
			} count++ count int min = count; min count int max = count; max count if (min == 0) {
			min = 1;
		} min == 0 min 0 {
			min = 1;
		} min = 1 min 1 if (nums[8] > 0) {
			max = count + nums[8];
		} nums[8] > 0 nums[8] nums 8 0 {
			max = count + nums[8];
		} max = count + nums[8] max count + nums[8] count nums[8] nums 8 System.out.printf("%d %d\n", min, max) System.out.printf System.out System System.out "%d %d\n" min max String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	}
} Main
import java.util.*;

// ABC 64-C
// https://beta.atcoder.jp/contests/abc064/tasks/abc064_c

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int N = in.nextInt();
		int[] nums = new int[9];
		
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a >= 3200) {
				nums[8]++;
			} else {
				nums[a / 400]++;
			}
		}
		
		int count = 0;
		for (int i = 0; i < 8; i++) {
			if (nums[i] > 0) {
				count++;
			}
		}
		int min = count;
		int max = count;
		if (min == 0) {
			min = 1;
		}
		if (nums[8] > 0) {
			max = count + nums[8];
		}
		System.out.printf("%d %d\n", min, max);
	}
}
