import java.util.Scanner;
	public class Main
		{ public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		}
		} import java.util.Scanner; Scanner java.util public class Main
		{ public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		}
		} Main public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		} main {   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] a = new int[N]; a new int[N] N int[] flg = new int [8]; flg new int [8] 8 flg[0] = 0 flg[0] flg 0 0 flg[1] = 0 flg[1] flg 1 0 flg[2] = 0 flg[2] flg 2 0 flg[3] = 0 flg[3] flg 3 0 flg[4] = 0 flg[4] flg 4 0 flg[5] = 0 flg[5] flg 5 0 flg[6] = 0 flg[6] flg 6 0 flg[7] = 0 flg[7] flg 7 0 int count = 0; count 0 int min = 0; min 0 int max = 0; max 0 for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				} {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				} a[i] = scanner.nextInt() a[i] a i scanner.nextInt() scanner.nextInt scanner if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    } 1 <= a[i] && a[i] <= 399 1 <= a[i] 1 a[i] a i a[i] <= 399 a[i] a i 399 {
				        flg[0] = 1;
				    } flg[0] = 1 flg[0] flg 0 1 if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    } 400 <= a[i] && a[i] <= 799 400 <= a[i] 400 a[i] a i a[i] <= 799 a[i] a i 799 {
				        flg[1] = 1;
				    } flg[1] = 1 flg[1] flg 1 1 if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    } 800 <= a[i] && a[i] <= 1199 800 <= a[i] 800 a[i] a i a[i] <= 1199 a[i] a i 1199 {
				        flg[2] = 1;
				    } flg[2] = 1 flg[2] flg 2 1 if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    } 1200 <= a[i] && a[i] <= 1599 1200 <= a[i] 1200 a[i] a i a[i] <= 1599 a[i] a i 1599 {
				        flg[3] = 1;
				    } flg[3] = 1 flg[3] flg 3 1 if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    } 1600 <= a[i] && a[i] <= 1999 1600 <= a[i] 1600 a[i] a i a[i] <= 1999 a[i] a i 1999 {
				        flg[4] = 1;
				    } flg[4] = 1 flg[4] flg 4 1 if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    } 2000 <= a[i] && a[i] <= 2399 2000 <= a[i] 2000 a[i] a i a[i] <= 2399 a[i] a i 2399 {
				        flg[5] = 1;
				    } flg[5] = 1 flg[5] flg 5 1 if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    } 2400 <= a[i] && a[i] <= 2799 2400 <= a[i] 2400 a[i] a i a[i] <= 2799 a[i] a i 2799 {
				        flg[6] = 1;
				    } flg[6] = 1 flg[6] flg 6 1 if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    } 2800 <= a[i] && a[i] <= 3199 2800 <= a[i] 2800 a[i] a i a[i] <= 3199 a[i] a i 3199 {
				        flg[7] = 1;
				    } flg[7] = 1 flg[7] flg 7 1 if (3200 <= a[i]) {
				        count++;
				    } 3200 <= a[i] 3200 a[i] a i {
				        count++;
				    } count++ count for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} if (flg[i] == 1) {
				        min ++;
				    } flg[i] == 1 flg[i] flg i 1 {
				        min ++;
				    } min ++ min max = min + count max min + count min count if (min == 0) {
				    min = 1;
				} min == 0 min 0 {
				    min = 1;
				} min = 1 min 1 System.out.print(min + " " + max) System.out.print System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main
		{ public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		}
		} public class Main
		{ public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		}
		} Main
import java.util.Scanner;
	public class Main
		{ public static void main(String[] args)
			{   
			    Scanner scanner = new Scanner(System.in);
				int N = scanner.nextInt();
				int[] a = new int[N];
				int[] flg = new int [8];
				
				flg[0] = 0;
				flg[1] = 0;
				flg[2] = 0;
				flg[3] = 0;
				flg[4] = 0;
				flg[5] = 0;
				flg[6] = 0;
				flg[7] = 0;
				int count = 0;
				int min = 0;
				int max = 0;
				
				for (int i = 0; i < N; i++) {
				    a[i] = scanner.nextInt();
				    if (1 <= a[i] && a[i] <= 399) {
				        flg[0] = 1;
				    }
				    if (400 <= a[i] && a[i] <= 799) {
				        flg[1] = 1;
				    }
				    if (800 <= a[i] && a[i] <= 1199) {
				        flg[2] = 1;
				    }
				    if (1200 <= a[i] && a[i] <= 1599) {
				        flg[3] = 1;
				    }
				    if (1600 <= a[i] && a[i] <= 1999) {
				        flg[4] = 1;
				    }
				    if (2000 <= a[i] && a[i] <= 2399) {
				        flg[5] = 1;
				    }
				    if (2400 <= a[i] && a[i] <= 2799) {
				        flg[6] = 1;
				    }
				    if (2800 <= a[i] && a[i] <= 3199) {
				        flg[7] = 1;
				    }
				    if (3200 <= a[i]) {
				        count++;
				    }
				}
				
				for (int i = 0; i < 8; i++) {
				    if (flg[i] == 1) {
				        min ++;
				    } 
				} 
				
				
				max = min + count;
				if (min == 0) {
				    min = 1;
				}
				
				System.out.print(min + " " + max);
		}
		}