import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] b = new int[9]; b new int[9] 9 for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		} {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			} int j = 0; int j = 0; j 0 j < 8 j 8 j++ j++ j {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			} {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			} if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				} 400 * j <= a && a <= 399 + 400 * j 400 * j <= a 400 * j 400 j a a <= 399 + 400 * j a 399 + 400 * j 399 400 * j 400 j {
					b[j]++;
					break;
				} b[j]++ b[j] b j break; if(3200 <= a) {
				b[8]++;
			} 3200 <= a 3200 a {
				b[8]++;
			} b[8]++ b[8] b 8 int sum = 0; sum 0 for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		} int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i {
			if(b[i] >= 1) {
				sum++;
			}
		} {
			if(b[i] >= 1) {
				sum++;
			}
		} if(b[i] >= 1) {
				sum++;
			} b[i] >= 1 b[i] b i 1 {
				sum++;
			} sum++ sum if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		} b[8] == 0 b[8] b 8 0 {
			System.out.println(sum + " " + sum);
		} System.out.println(sum + " " + sum) System.out.println System.out System System.out sum + " " + sum sum + " " + sum sum " " sum {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		} if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			} sum == 1 sum 1 {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} System.out.println(sum + " " + (sum - 1 + b[8])) System.out.println System.out System System.out sum + " " + (sum - 1 + b[8]) sum + " " + (sum - 1 + b[8]) sum " " (sum - 1 + b[8]) sum - 1 sum 1 b[8] b 8 {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			} System.out.println(sum - 1 + " " + (sum - 1 + b[8])) System.out.println System.out System System.out sum - 1 + " " + (sum - 1 + b[8]) sum - 1 + " " + (sum - 1 + b[8]) sum - 1 sum 1 " " (sum - 1 + b[8]) sum - 1 sum 1 b[8] b 8 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int[] b = new int[9];
		
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			for(int j = 0; j < 8; j++) {
				if(400 * j <= a && a <= 399 + 400 * j) {
					b[j]++;
					break;
				}
			}
			if(3200 <= a) {
				b[8]++;
			}
		}
		
		int sum = 0;
		
		for(int i = 0; i < 9; i++) {
			if(b[i] >= 1) {
				sum++;
			}
		}

		if(b[8] == 0) {
			System.out.println(sum + " " + sum);
		} else {
			if(sum == 1) {
				System.out.println(sum + " " + (sum - 1 + b[8]));
			} else {
				System.out.println(sum - 1 + " " + (sum - 1 + b[8]));
			}
		}
	}
}
