import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	}
} Main public static void main(String[] args){
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	} main {
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	} Scanner io = new Scanner(System.in); io new Scanner(System.in) int N = io.nextInt(); N io.nextInt() io.nextInt io int[] col = new int[13]; col new int[13] 13 for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			col[io.nextInt()/400] ++;
		} {
			col[io.nextInt()/400] ++;
		} col[io.nextInt()/400] ++ col[io.nextInt()/400] col io.nextInt()/400 io.nextInt() io.nextInt io 400 int min = 0; min 0 for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(col[i]>0) min++;
		} {
			if(col[i]>0) min++;
		} if(col[i]>0) min++; col[i]>0 col[i] col i 0 min++ min int topCoders=0; topCoders 0 for(int i=8;i<13;i++){
			topCoders += col[i];
		} int i=8; int i=8; i 8 i<13 i 13 i++ i++ i {
			topCoders += col[i];
		} {
			topCoders += col[i];
		} topCoders += col[i] topCoders col[i] col i int max; max if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		} min == 0 min 0 {
			min = 1;
			max = topCoders;
		} min = 1 min 1 max = topCoders max topCoders if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		} topCoders>0 topCoders 0 {
			max = min + topCoders;
		} max = min + topCoders max min + topCoders min topCoders {
			max = min;
		} max = min max min 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 io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	}
} public class Main {
	public static void main(String[] args){
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner io = new Scanner(System.in);
		int N = io.nextInt();
		int[] col = new int[13];
		for(int i=0;i<N;i++){
			col[io.nextInt()/400] ++;
		}
		int min = 0;
		for(int i=0;i<8;i++){
			if(col[i]>0) min++;
		}
		int topCoders=0;
		for(int i=8;i<13;i++){
			topCoders += col[i];
		}
		
		int max;
		if(min == 0){
			min = 1;
			max = topCoders;
		}else if(topCoders>0){
			max = min + topCoders;
		}else{
			max = min;
		}
			
		System.out.println(min + " "+ max);
		
	}
}