import java.util.*;

class Main{
    static Scanner sc = new Scanner(System.in);
    public static void main(String args[]){
        int N=sc.nextInt();
        boolean f[]=new boolean[8];
        int p=0,c=0;
        Arrays.fill(f, true);
        for(int i=0;i<N;i++){
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        }
        int m=c+p;
        if(c==0) c++;
        System.out.println(c+" "+m);
    }
} import java.util.*; util.* java class Main{
    static Scanner sc = new Scanner(System.in);
    public static void main(String args[]){
        int N=sc.nextInt();
        boolean f[]=new boolean[8];
        int p=0,c=0;
        Arrays.fill(f, true);
        for(int i=0;i<N;i++){
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        }
        int m=c+p;
        if(c==0) c++;
        System.out.println(c+" "+m);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String args[]){
        int N=sc.nextInt();
        boolean f[]=new boolean[8];
        int p=0,c=0;
        Arrays.fill(f, true);
        for(int i=0;i<N;i++){
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        }
        int m=c+p;
        if(c==0) c++;
        System.out.println(c+" "+m);
    } main {
        int N=sc.nextInt();
        boolean f[]=new boolean[8];
        int p=0,c=0;
        Arrays.fill(f, true);
        for(int i=0;i<N;i++){
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        }
        int m=c+p;
        if(c==0) c++;
        System.out.println(c+" "+m);
    } int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean f[]=new boolean[8]; f new boolean[8] 8 int p=0 p 0 c=0; c 0 Arrays.fill(f, true) Arrays.fill Arrays f true for(int i=0;i<N;i++){
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        } {
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        } int a=sc.nextInt()/400; a sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            } a>7 a 7 {
                p++;
            } p++ p if(f[a]){
                c++;
                f[a]=false;
            } f[a] f a {
                c++;
                f[a]=false;
            } c++ c f[a]=false f[a] f a false int m=c+p; m c+p c p if(c==0) c++; c==0 c 0 c++ c System.out.println(c+" "+m) System.out.println System.out System System.out c+" "+m c+" "+m c " " m String args[] args
import java.util.*;

class Main{
    static Scanner sc = new Scanner(System.in);
    public static void main(String args[]){
        int N=sc.nextInt();
        boolean f[]=new boolean[8];
        int p=0,c=0;
        Arrays.fill(f, true);
        for(int i=0;i<N;i++){
            int a=sc.nextInt()/400;
            if(a>7){
                p++;
            }
            else if(f[a]){
                c++;
                f[a]=false;
            }
        }
        int m=c+p;
        if(c==0) c++;
        System.out.println(c+" "+m);
    }
}