import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String args[]){
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

		System.out.print(min);
		System.out.println(" "+max);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String args[]){
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

		System.out.print(min);
		System.out.println(" "+max);
	}
} Main public static void main(String args[]){
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

		System.out.print(min);
		System.out.println(" "+max);
	} main {
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

		System.out.print(min);
		System.out.println(" "+max);
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int A = cin.nextInt(); A cin.nextInt() cin.nextInt cin int tmp; tmp int list[] = new int[8]; list new int[8] 8 Arrays.fill(list, 0) Arrays.fill Arrays list 0 int target=0; target 0 for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		} int i=0; int i=0; i 0 i<A i A i++ i++ i {
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		} {
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		} tmp = cin.nextInt() tmp cin.nextInt() cin.nextInt cin if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			} tmp<3200 tmp 3200 {
				list[tmp/400]++;
			} list[tmp/400]++ list[tmp/400] list tmp/400 tmp 400 {
				target++;
			} target++ target int min; min int max; max int type = 0; type 0 for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		} int j=0; int j=0; j 0 j<=7 j 7 j++ j++ j {
			if(list[j]>0)
			type++;
		} {
			if(list[j]>0)
			type++;
		} if(list[j]>0)
			type++; list[j]>0 list[j] list j 0 type++ type if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		} target==0 target 0 {
			min=type;
			max=type;
		} min=type min type max=type max type {
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		} if(type>0){
				min=type;
			}else{
				min=1;
			} type>0 type 0 {
				min=type;
			} min=type min type {
				min=1;
			} min=1 min 1 max=type+target max type+target type target System.out.print(min) System.out.print System.out System System.out min System.out.println(" "+max) System.out.println System.out System System.out " "+max " " max String args[] args public class Main {

	public static void main(String args[]){
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

		System.out.print(min);
		System.out.println(" "+max);
	}
} public class Main {

	public static void main(String args[]){
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

		System.out.print(min);
		System.out.println(" "+max);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String args[]){
		Scanner cin = new Scanner(System.in);

		int A = cin.nextInt();
		int tmp;
		int list[] = new int[8];
		Arrays.fill(list, 0);
		int target=0;
		for(int i=0;i<A;i++){
			tmp = cin.nextInt();
			if(tmp<3200){
				list[tmp/400]++;
			}else{
				target++;
			}
		}
		int min;
		int max;
		int type = 0;
		for(int j=0;j<=7;j++){
			if(list[j]>0)
			type++;
		}
		if(target==0){
			min=type;
			max=type;
		}else{
			if(type>0){
				min=type;
			}else{
				min=1;
			}
			max=type+target;
		}

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