import java.util.Scanner;

public class Main{
	
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main{
	
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int[] color = new int[9]; color new int[9] 9 for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		} {
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		} int temp = scan.nextInt() / 400; temp scan.nextInt() / 400 scan.nextInt() scan.nextInt scan 400 if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			} temp < 8 && color[temp] == 0 temp < 8 temp 8 color[temp] == 0 color[temp] color temp 0 {
				color[temp] += 1;
			} color[temp] += 1 color[temp] color temp 1 if(temp >= 8) {
				color[8] += 1;
			} temp >= 8 temp 8 {
				color[8] += 1;
			} color[8] += 1 color[8] color 8 1 int count = 0; count 0 for(int i = 0; i < 8; i++){
			count += color[i];
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			count += color[i];
		} {
			count += color[i];
		} count += color[i] count color[i] color i if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		} count == 0 count 0 {
			System.out.println("1 " + color[8]);
		} System.out.println("1 " + color[8]) System.out.println System.out System System.out "1 " + color[8] "1 " color[8] color 8 {
			System.out.println(count + " " + (count + color[8]));
		} System.out.println(count + " " + (count + color[8])) System.out.println System.out System System.out count + " " + (count + color[8]) count + " " + (count + color[8]) count " " (count + color[8]) count color[8] color 8 String[] args args public class Main{
	
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	}
} public class Main{
	
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	}
} Main
import java.util.Scanner;

public class Main{
	
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		// input
		int num = scan.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < num; i++){
			int temp = scan.nextInt() / 400;
			if(temp < 8 && color[temp] == 0){
				color[temp] += 1;
			} else if(temp >= 8) {
				color[8] += 1;
			}
		}
		
		// search
		int count = 0;
		for(int i = 0; i < 8; i++){
			count += color[i];
		}
		
		// answer
		if(count == 0){
			System.out.println("1 " + color[8]);
		} else {
			System.out.println(count + " " + (count + color[8]));
		}
		
	}
}