

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

    public static void main(String[] args) {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    } main {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int min = 0; min 0 List<Integer> list = new ArrayList(); list new ArrayList() for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        } {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        } int value = sc.nextInt(); value sc.nextInt() sc.nextInt sc int j = 400; j 400 while (value >= j && j <= 3200) {
                j += 400;
            } value >= j && j <= 3200 value >= j value j j <= 3200 j 3200 {
                j += 400;
            } j += 400 j 400 if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            } value < 3200 value 3200 {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } if (!list.contains(j)) {
                    min++;
                    list.add(j);
                } !list.contains(j) list.contains(j) list.contains list j {
                    min++;
                    list.add(j);
                } min++ min list.add(j) list.add list j {
                list.add(value);
            } list.add(value) list.add list value System.out.println((min == 0 ? 1 : min) + " " + list.size()) System.out.println System.out System System.out (min == 0 ? 1 : min) + " " + list.size() (min == 0 ? 1 : min) + " " + list.size() (min == 0 ? 1 : min) min == 0 min 0 1 min " " list.size() list.size list String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    }
} Main


import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

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

    public static void main(String[] args) {
        int n = sc.nextInt();
        int min = 0;
        List<Integer> list = new ArrayList();
        for (int i = 0; i < n; i++) {
            int value = sc.nextInt();
            int j = 400;
            while (value >= j && j <= 3200) {
                j += 400;
            }
            if (value < 3200) {
                if (!list.contains(j)) {
                    min++;
                    list.add(j);
                }
            } else {
                list.add(value);
            }
        }
        System.out.println((min == 0 ? 1 : min) + " " + list.size());
    }
}
