public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int userCount = sc.nextInt();

        int free = 0;
        Set<Integer> colors = new HashSet<>();
        for (int i = 0; i < userCount; i++) {
            int rate = sc.nextInt() / 400;
            if (7 < rate) {
                free++;
            } else {
                colors.add(rate);
            }
        }
        int hold  = colors.size();

        int min = 0;
        int max = 0;
        if (hold == 0) {
            if (0 < free) {
                min = 1;
                max = free <= 8 ? free : 8;
            }
        } else {
            min = hold;
            max = hold + free <= 8 ? hold + free : 8;
        }
        System.out.println(min + " " + max);
    }
}