import java.util.*;
import java.lang.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] rate = new int[13]; rate new int[13] 13 int count1 = 0 count1 0 count2 = 0; count2 0 for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			rate[sc.nextInt()/400]++;
		} {
			rate[sc.nextInt()/400]++;
		} rate[sc.nextInt()/400]++ rate[sc.nextInt()/400] rate sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		} int i=0; int i=0; i 0 i<=7 i 7 i++ i++ i {
			if( rate[i]>0 ){
				count1++;
			}
		} {
			if( rate[i]>0 ){
				count1++;
			}
		} if( rate[i]>0 ){
				count1++;
			} rate[i]>0 rate[i] rate i 0 {
				count1++;
			} count1++ count1 for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		} int i=8; int i=8; i 8 i<=12 i 12 i++ i++ i {
			count2 += rate[i];          
		} {
			count2 += rate[i];          
		} count2 += rate[i] count2 rate[i] rate i if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		} count1==0 count1 0 {
			System.out.println(1+" "+count2);
		} System.out.println(1+" "+count2) System.out.println System.out System System.out 1+" "+count2 1+" "+count2 1 " " count2 {
			System.out.println(count1+" "+(count1+count2));
		} System.out.println(count1+" "+(count1+count2)) System.out.println System.out System System.out count1+" "+(count1+count2) count1+" "+(count1+count2) count1 " " (count1+count2) count1 count2 String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	}
} Main
import java.util.*;
import java.lang.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] rate = new int[13];
		int count1 = 0,count2 = 0;
		for( int i=0; i<N; i++ ){
			rate[sc.nextInt()/400]++;
		}
		for( int i=0; i<=7; i++ ){
			if( rate[i]>0 ){
				count1++;
			}
		}
		for( int i=8; i<=12; i++ ){
			count2 += rate[i];          
		}
		if( count1==0 ){
			System.out.println(1+" "+count2);
		}else{
			System.out.println(count1+" "+(count1+count2));
		}
	}
}
