import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	}
} Main public static void main(String[] args) {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	} main {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	} final 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 red = 0; red 0 for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		} {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			} 3200 <= a 3200 a {
				red++;
			} red++ red {
				rate[(a/400)]++;
			} rate[(a/400)]++ rate[(a/400)] rate (a/400) a 400 int min = 0; min 0 int max = 0; max 0 int count = 0; count 0 for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if(rate[i] >= 1) {
				count++;
			}
		} {
			if(rate[i] >= 1) {
				count++;
			}
		} if(rate[i] >= 1) {
				count++;
			} rate[i] >= 1 rate[i] rate i 1 {
				count++;
			} count++ count min = Math.max(count, 1) min Math.max(count, 1) Math.max Math count 1 max = count+red max count+red count red 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) {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	}
} public class Main {
	public static void main(String[] args) {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		final Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] rate = new int[8];
		int red = 0;
		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			if(3200 <= a) {
				red++;
			} else {
				rate[(a/400)]++;
			}
		}
		int min = 0;
		int max = 0;
		int count = 0;
		for(int i = 0; i < 8; i++) {
			if(rate[i] >= 1) {
				count++;
			}
		}
		min = Math.max(count, 1);
		max = count+red;
		System.out.println(min+" "+max);
	}
}