import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    }   
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    }   
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a = new int[N]; a new int[N] N int[] c = new int[9]; c new int[9] 9 long sum = 0; sum 0 for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        } {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        } a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++; a[i] < 3200 a[i] a i 3200 c[(int)(a[i]/400)]++ c[(int)(a[i]/400)] c (int)(a[i]/400) a[i] a i 400 c[8]++ c[8] c 8 int count = 0; count 0 for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            if(c[i] > 0) count++;
        } {
            if(c[i] > 0) count++;
        } if(c[i] > 0) count++; c[i] > 0 c[i] c i 0 count++ count int ansmin = 1; ansmin 1 int maxans = count + c[8]; maxans count + c[8] count c[8] c 8 if(count > 0) ansmin = count; count > 0 count 0 ansmin = count ansmin count System.out.println(ansmin+" "+maxans) System.out.println System.out System System.out ansmin+" "+maxans ansmin+" "+maxans ansmin " " maxans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    }   
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    }   
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] a = new int[N];
        int[] c = new int[9];
        long sum = 0;
        for(int i=0; i<N; i++) {
            a[i] = Integer.parseInt(sc.next());
            if(a[i] < 3200) c[(int)(a[i]/400)]++;
            else c[8]++;
        }
       
        int count = 0;
        for(int i=0; i<8; i++) {
            if(c[i] > 0) count++;
        }
        int ansmin = 1;
        int maxans = count + c[8];
        if(count > 0) ansmin = count;
        System.out.println(ansmin+" "+maxans);
        
    }   
}
