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