import java.util.Scanner;

public class Main {
	
	
	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	}

}
 import java.util.Scanner; Scanner java.util public class Main {
	
	
	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	}

} Main public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	} main {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	} @SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int score[] = new int[N]; score new int[N] N for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			score[i] = scan.nextInt();
		} {
			score[i] = scan.nextInt();
		} score[i] = scan.nextInt() score[i] score i scan.nextInt() scan.nextInt scan int count[] = new int [8]; count new int [8] 8 int var = 0; var 0 for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		} {
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		} if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 399 score[i] score i 399 {
			count[0]++;
		} count[0]++ count[0] count 0 if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 799 score[i] score i 799 {
			count[1]++;
		} count[1]++ count[1] count 1 if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 1199 score[i] score i 1199 {
			count[2]++;
		} count[2]++ count[2] count 2 if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 1599 score[i] score i 1599 {
			count[3]++;
		} count[3]++ count[3] count 3 if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 1999 score[i] score i 1999 {
			count[4]++;
		} count[4]++ count[4] count 4 if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 2399 score[i] score i 2399 {
			count[5]++;
		} count[5]++ count[5] count 5 if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 2799 score[i] score i 2799 {
			count[6]++;
		} count[6]++ count[6] count 6 if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		} score[i] <= 3199 score[i] score i 3199 {
			count[7]++;
		} count[7]++ count[7] count 7 if(score[i] >= 3200){
			var++;
		} score[i] >= 3200 score[i] score i 3200 {
			var++;
		} var++ var int min = 0; min 0 for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		} int i = 0; int i = 0; i 0 i < count.length i count.length count count.length i++ i++ i {
			if (count[i] > 0) {
				min++;
			}
		} {
			if (count[i] > 0) {
				min++;
			}
		} if (count[i] > 0) {
				min++;
			} count[i] > 0 count[i] count i 0 {
				min++;
			} min++ min int max = min + var; max min + var min var if (min == 0) {
			min = 1;
		} min == 0 min 0 {
			min = 1;
		} min = 1 min 1 System.out.print(min + " ") System.out.print System.out System System.out min + " " min " " System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	
	
	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	}

} public class Main {
	
	
	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	}

} Main
import java.util.Scanner;

public class Main {
	
	
	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();

		int score[] = new int[N];

		for (int i = 0; i < N; i++) {
			score[i] = scan.nextInt();
		}
		
		int count[] = new int [8];
		
		int var = 0;
		
		for(int i = 0; i < N; i++){
			
			
		if(score[i] <= 399){
			count[0]++;
		} else if(score[i] <= 799){
			count[1]++;
		} else if(score[i] <= 1199){
			count[2]++;
		} else if(score[i] <= 1599){
			count[3]++;
		} else if(score[i] <= 1999){
			count[4]++;
		} else if(score[i] <= 2399){
			count[5]++;
		} else if(score[i] <= 2799){
			count[6]++;
		} else if(score[i] <= 3199){
			count[7]++;
		} else if(score[i] >= 3200){
			var++;
		}

		}
		
		
		int min = 0;
		for (int i = 0; i < count.length; i++) {
			if (count[i] > 0) {
				min++;
			}
		}
		
		int max = min + var;
		if (min == 0) {
			min = 1;
		}
		
		System.out.print(min + " ");
		System.out.println(max);
		//System.out.println(Arrays.toString(count));
		//System.out.println(counter);
		//System.out.println(all);
	}

}

