import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] rate = new int[9]; rate new int[9] 9 for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        } {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        } int r = sc.nextInt(); r sc.nextInt() sc.nextInt sc for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            } int j = 8; int j = 8; j 8 j >= 0 j 0 j-- j-- j {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            } {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            } if(r >= 400 * j){
                    rate[j]++;
                    break;
                } r >= 400 * j r 400 * j 400 j {
                    rate[j]++;
                    break;
                } rate[j]++ rate[j] rate j break; int var = 0; var 0 for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if(rate[i] > 0) var++;
        } {
            if(rate[i] > 0) var++;
        } if(rate[i] > 0) var++; rate[i] > 0 rate[i] rate i 0 var++ var System.out.print(Math.max(var, 1) + " ") System.out.print System.out System System.out Math.max(var, 1) + " " Math.max(var, 1) Math.max Math var 1 " " System.out.println(var + rate[8]) System.out.println System.out System System.out var + rate[8] var rate[8] rate 8 sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int r = sc.nextInt();
            for (int j = 8; j >= 0; j--) {
                if(r >= 400 * j){
                    rate[j]++;
                    break;
                }
            }
        }
        int var = 0;
        for (int i = 0; i < 8; i++) {
            if(rate[i] > 0) var++;
        }

        System.out.print(Math.max(var, 1) + " ");
        System.out.println(var + rate[8]);
        sc.close();
    }

}
