import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		new Main().solve();
	}
	
	int N;
	int[]a; //max4800
	void solve(){
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		new Main().solve();
	}
	
	int N;
	int[]a; //max4800
	void solve(){
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	}
} Main int N; N int[]a; //max4800 a public static void main(String[] args) {
		new Main().solve();
	} main {
		new Main().solve();
	} new Main().solve() new Main().solve new Main() String[] args args void solve(){
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	} solve {
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) N=sc.nextInt() N sc.nextInt() sc.nextInt sc a=new int[N] a new int[N] N int[] color=new int[9]; color new int[9] 9 for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		} {
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		} a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc if(a[i]<3200)color[a[i]/400]++;
			else color[8]++; a[i]<3200 a[i] a i 3200 color[a[i]/400]++ color[a[i]/400] color a[i]/400 a[i] a i 400 color[8]++ color[8] color 8 int cnt=0; cnt 0 for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(color[i]>0){
				cnt++;
			}
		} {
			if(color[i]>0){
				cnt++;
			}
		} if(color[i]>0){
				cnt++;
			} color[i]>0 color[i] color i 0 {
				cnt++;
			} cnt++ cnt if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		} color[8]>0 color[8] color 8 0 {
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		} if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8])); cnt==8 cnt 8 System.out.println(8+" "+(cnt+color[8])) System.out.println System.out System System.out 8+" "+(cnt+color[8]) 8+" "+(cnt+color[8]) 8 " " (cnt+color[8]) cnt color[8] color 8 if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8])); cnt==0 cnt 0 System.out.println(1+" "+color[8]) System.out.println System.out System System.out 1+" "+color[8] 1+" "+color[8] 1 " " color[8] color 8 System.out.println(cnt+" "+(cnt+color[8])) System.out.println System.out System System.out cnt+" "+(cnt+color[8]) cnt+" "+(cnt+color[8]) cnt " " (cnt+color[8]) cnt color[8] color 8 {
			System.out.println(cnt+" "+cnt);
		} System.out.println(cnt+" "+cnt) System.out.println System.out System System.out cnt+" "+cnt cnt+" "+cnt cnt " " cnt public class Main {

	public static void main(String[] args) {
		new Main().solve();
	}
	
	int N;
	int[]a; //max4800
	void solve(){
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	}
} public class Main {

	public static void main(String[] args) {
		new Main().solve();
	}
	
	int N;
	int[]a; //max4800
	void solve(){
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		new Main().solve();
	}
	
	int N;
	int[]a; //max4800
	void solve(){
		Scanner sc=new Scanner(System.in);
		N=sc.nextInt();
		a=new int[N];
		int[] color=new int[9];
		
		for(int i=0;i<N;i++){
			a[i]=sc.nextInt();
			if(a[i]<3200)color[a[i]/400]++;
			else color[8]++;
		}
		
		int cnt=0;
		for(int i=0;i<8;i++){
			if(color[i]>0){
				cnt++;
			}
		}
		
		if(color[8]>0){
			if(cnt==8)System.out.println(8+" "+(cnt+color[8]));
			else if(cnt==0)System.out.println(1+" "+color[8]);
			else System.out.println(cnt+" "+(cnt+color[8]));
		}else{
			System.out.println(cnt+" "+cnt);
		}
	}
}
