import java.util.*;
import java.io.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] arr = new int[n]; arr new int[n] n for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			arr[i] = sc.nextInt();
		} {
			arr[i] = sc.nextInt();
		} arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc int min = 0; min 0 int max = 0; max 0 int[] color = new int[9]; color new int[9] 9 for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		} {
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		} if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			} (arr[i]/400) >= 8 (arr[i]/400) arr[i] arr i 400 8 {
				color[8]++;
			} color[8]++ color[8] color 8 {
				color[arr[i]/400] = 1;
			} color[arr[i]/400] = 1 color[arr[i]/400] color arr[i]/400 arr[i] arr i 400 1 for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(color[i] == 1){
				min++;
				max++;
			}
		} {
			if(color[i] == 1){
				min++;
				max++;
			}
		} if(color[i] == 1){
				min++;
				max++;
			} color[i] == 1 color[i] color i 1 {
				min++;
				max++;
			} min++ min max++ max if(min == 0 && color[8] > 0)
			min++; min == 0 && color[8] > 0 min == 0 min 0 color[8] > 0 color[8] color 8 0 min++ min if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		} color[8] > 0 color[8] color 8 0 {
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		} max = max + color[8] max max + color[8] max color[8] color 8 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){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	}
} Main
import java.util.*;
import java.io.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];

		for(int i=0; i<n; i++){
			arr[i] = sc.nextInt();
		}
		
		int min = 0;
		int max = 0;

		int[] color = new int[9];

		for(int i=0; i<n; i++){
			if((arr[i]/400) >= 8){
				color[8]++;
			}else{
				color[arr[i]/400] = 1;
			}
		}

		for(int i=0; i<8; i++){
			if(color[i] == 1){
				min++;
				max++;
			}
		}
		
		if(min == 0 && color[8] > 0)
			min++;
		if(color[8] > 0){
			max = max + color[8];
			/*if((max + color[8]) < 8)
				max = max + color[8];
			else
				max = 8;*/
		}

		System.out.println(min + " " + max);
	}
}
