import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
  		int[] a=new int[9];
		for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	}
        int ans=0;
  		for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        }
        System.out.println(Math.max(ans,1));
     	System.out.println(ans+a[8]);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
  		int[] a=new int[9];
		for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	}
        int ans=0;
  		for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        }
        System.out.println(Math.max(ans,1));
     	System.out.println(ans+a[8]);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
  		int[] a=new int[9];
		for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	}
        int ans=0;
  		for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        }
        System.out.println(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];
		for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	}
        int ans=0;
  		for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        }
        System.out.println(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 for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	} int c=0; int c=0; c 0 c<n c n c++ c++ c {
    		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 int ans=0; ans 0 for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        } int d=0; int d=0; d 0 d<8 d 8 d++ d++ d {
        	if(a[d]>0){
            ans++;
            }
        } {
        	if(a[d]>0){
            ans++;
            }
        } if(a[d]>0){
            ans++;
            } a[d]>0 a[d] a d 0 {
            ans++;
            } ans++ ans System.out.println(Math.max(ans,1)) System.out.println System.out System System.out 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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
  		int[] a=new int[9];
		for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	}
        int ans=0;
  		for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        }
        System.out.println(Math.max(ans,1));
     	System.out.println(ans+a[8]);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
  		int[] a=new int[9];
		for(int c=0;c<n;c++){
    		int b=sc.nextInt();
          if(b<3200){
            a[b/400]++;
          }else{
          	a[8]++;
          }
    	}
        int ans=0;
  		for(int d=0;d<8;d++){
        	if(a[d]>0){
            ans++;
            }
        }
        System.out.println(Math.max(ans,1));
     	System.out.println(ans+a[8]);
    }
} Main
import java.util.*;

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