import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int a = 0; a 0 boolean[] isColor = new boolean[8]; isColor new boolean[8] 8 int min = 0; min 0 int count = 0; count 0 for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        } {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        } a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            } a >= 3200 a 3200 {
                count++;
            } count++ count {
                isColor[a/400] = true;
            } isColor[a/400] = true isColor[a/400] isColor a/400 a 400 true for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        } boolean ic isColor {
            if (ic){
                min++;
            }
        } {
            if (ic){
                min++;
            }
        } if (ic){
                min++;
            } ic {
                min++;
            } min++ min System.out.println(Math.max(min, 1) + " " + (min+count)) System.out.println System.out System System.out Math.max(min, 1) + " " + (min+count) Math.max(min, 1) + " " + (min+count) Math.max(min, 1) Math.max Math min 1 " " (min+count) min count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a = 0;
        boolean[] isColor = new boolean[8];
        int min = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            a = scanner.nextInt();
            if (a >= 3200){
                count++;
            }else {
                isColor[a/400] = true;
            }
        }
        for (boolean ic:isColor) {
            if (ic){
                min++;
            }
        }
        System.out.println(Math.max(min, 1) + " " + (min+count));

    }
}
