import java.util.Arrays;
import java.util.Scanner;

public class Main {
    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    }
} Main static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static void main(String[] args) {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    } main {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    } int N = in.nextInt(); N in.nextInt() in.nextInt in int[] c = new int[9]; c new int[9] 9 Arrays.fill(c, 0) Arrays.fill Arrays c 0 for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            c[Math.min(in.nextInt() / 400, 8)]++;
        } {
            c[Math.min(in.nextInt() / 400, 8)]++;
        } c[Math.min(in.nextInt() / 400, 8)]++ c[Math.min(in.nextInt() / 400, 8)] c Math.min(in.nextInt() / 400, 8) Math.min Math in.nextInt() / 400 in.nextInt() in.nextInt in 400 8 int sum = 0; sum 0 for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            sum += c[i] == 0 ? 0 : 1;
        } {
            sum += c[i] == 0 ? 0 : 1;
        } sum += c[i] == 0 ? 0 : 1 sum c[i] == 0 ? 0 : 1 c[i] == 0 c[i] c i 0 0 1 System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8])) System.out.println System.out System System.out (sum == 0 ? 1 : sum) + " " + (sum + c[8]) (sum == 0 ? 1 : sum) + " " + (sum + c[8]) (sum == 0 ? 1 : sum) sum == 0 sum 0 1 sum " " (sum + c[8]) sum c[8] c 8 String[] args args public class Main {
    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    }
} public class Main {
    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int N = in.nextInt();
        int[] c = new int[9];
        Arrays.fill(c, 0);
        for(int i = 0; i < N; i++){
            c[Math.min(in.nextInt() / 400, 8)]++;
        }
        int sum = 0;
        for(int i = 0; i < 8; i++){
            sum += c[i] == 0 ? 0 : 1;
        }
        System.out.println((sum == 0 ? 1 : sum) + " " + (sum + c[8]));
    }
}