import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   } main {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a=new int[9]; a new int[9] 9 int ans=0; ans 0 for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	} int i=0; int i=0; i 0 i<n i n i++ i++ i {
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	} {
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	} int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            } b<3200 b 3200 {
                a[b/400]++;
            } a[b/400]++ a[b/400] a b/400 b 400 {
          	    a[8]++;
            } a[8]++ a[8] a 8 for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
        	if(a[i]>0){
                ans++;
            }
        } {
        	if(a[i]>0){
                ans++;
            }
        } if(a[i]>0){
                ans++;
            } a[i]>0 a[i] a i 0 {
                ans++;
            } ans++ ans System.out.print(Math.max(ans,1)+" ") System.out.print System.out System System.out Math.max(ans,1)+" " Math.max(ans,1) Math.max Math ans 1 " " System.out.println(ans+a[8]) System.out.println System.out System System.out ans+a[8] ans a[8] a 8 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n=sc.nextInt();
  		int[] a=new int[9];
		int ans=0;
		
		for(int i=0;i<n;i++){
    		int b=sc.nextInt();
            if(b<3200){
                a[b/400]++;
            }else{
          	    a[8]++;
            }
    	}
        
  		for(int i=0;i<8;i++){
        	if(a[i]>0){
                ans++;
            }
        }
        
        System.out.print(Math.max(ans,1)+" ");
     	System.out.println(ans+a[8]);
   }
}
