import java.util.Scanner;

public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    }
} 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[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    }
} Main public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] rank = new int[9]; rank new int[9] 9 for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        } {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        } int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if (tmp >= 3200) {
                tmp = 3200;
            } tmp >= 3200 tmp 3200 {
                tmp = 3200;
            } tmp = 3200 tmp 3200 rank[tmp/400]++ rank[tmp/400] rank tmp/400 tmp 400 int colors = 0; colors 0 for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        } int i = 0; int i = 0; i 0 i < rank.length - 1 i rank.length - 1 rank.length rank rank.length 1 i++ i++ i {
            if (rank[i] != 0) {
                colors++;
            }
        } {
            if (rank[i] != 0) {
                colors++;
            }
        } if (rank[i] != 0) {
                colors++;
            } rank[i] != 0 rank[i] rank i 0 {
                colors++;
            } colors++ colors int color_min = (colors == 0)? 1: colors; color_min (colors == 0)? 1: colors (colors == 0) colors 0 1 colors int color_max = colors + rank[8]; color_max colors + rank[8] colors rank[8] rank 8 System.out.println(color_min + " " + color_max) System.out.println System.out System System.out color_min + " " + color_max color_min + " " + color_max color_min " " color_max String[] args args public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    }
} public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    }
} 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[] rank = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp >= 3200) {
                tmp = 3200;
            }
            rank[tmp/400]++;
        }

        int colors = 0;
        for (int i = 0; i < rank.length - 1; i++) {
            if (rank[i] != 0) {
                colors++;
            }
        }
        int color_min = (colors == 0)? 1: colors;
        int color_max = colors + rank[8];
        System.out.println(color_min + " " + color_max);
    }
}