import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in boolean[] ary = new boolean[8]; ary new boolean[8] 8 Arrays.fill(ary, Boolean.FALSE) Arrays.fill Arrays ary Boolean.FALSE Boolean Boolean.FALSE int maximum = 0; maximum 0 int minimum = 0; minimum 0 int t = 0; t 0 for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		} {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		} t = in.nextInt() t in.nextInt() in.nextInt in if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 1 && t <= 399 t >= 1 t 1 t <= 399 t 399 ary[0] = true ary[0] ary 0 true if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 400 && t <= 799 t >= 400 t 400 t <= 799 t 799 ary[1] = true ary[1] ary 1 true if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 800 && t <= 1199 t >= 800 t 800 t <= 1199 t 1199 ary[2] = true ary[2] ary 2 true if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 1200 && t <= 1599 t >= 1200 t 1200 t <= 1599 t 1599 ary[3] = true ary[3] ary 3 true if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 1600 && t <= 1999 t >= 1600 t 1600 t <= 1999 t 1999 ary[4] = true ary[4] ary 4 true if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 2000 && t <= 2399 t >= 2000 t 2000 t <= 2399 t 2399 ary[5] = true ary[5] ary 5 true if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 2400 && t <= 2799 t >= 2400 t 2400 t <= 2799 t 2799 ary[6] = true ary[6] ary 6 true if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++; t >= 2800 && t <= 3199 t >= 2800 t 2800 t <= 3199 t 3199 ary[7] = true ary[7] ary 7 true if ( t >= 3200 )
				maximum++; t >= 3200 t 3200 maximum++ maximum for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		} {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		} if (ary[i]) {
				minimum++;
				maximum++;
			} ary[i] ary i {
				minimum++;
				maximum++;
			} minimum++ minimum maximum++ maximum if ( minimum == 0 && maximum > 0 )
			minimum = 1; minimum == 0 && maximum > 0 minimum == 0 minimum 0 maximum > 0 maximum 0 minimum = 1 minimum 1 System.out.println(minimum + " " + maximum) System.out.println System.out System System.out minimum + " " + maximum minimum + " " + maximum minimum " " maximum String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean[] ary = new boolean[8];
		Arrays.fill(ary, Boolean.FALSE);
		int maximum = 0;
		int minimum = 0;
		
		int t = 0;
		for ( int i = 0; i < n; i++ ) {
			t = in.nextInt();
			if ( t >= 1 && t <= 399 )
				ary[0] = true;
			else if ( t >= 400 && t <= 799 )
				ary[1] = true;
			else if ( t >= 800 && t <= 1199 )
				ary[2] = true;
			else if ( t >= 1200 && t <= 1599 )
				ary[3] = true;
			else if ( t >= 1600 && t <= 1999 )
				ary[4] = true;
			else if ( t >= 2000 && t <= 2399 )
				ary[5] = true;
			else if ( t >= 2400 && t <= 2799 )
				ary[6] = true;
			else if ( t >= 2800 && t <= 3199 )
				ary[7] = true;
			else if ( t >= 3200 )
				maximum++;
		}
		
		for (int i = 0; i < 8; i++ ) {
			if (ary[i]) {
				minimum++;
				maximum++;
			}
		}
		
		if ( minimum == 0 && maximum > 0 )
			minimum = 1;
		
		System.out.println(minimum + " " + maximum);
	}
}