import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            int n = sc.nextInt();
            boolean[] useColors = new boolean[3200 / 8];
            int over3200 = 0;
            for (int i = 0; i < n; i++) {
                int a = sc.nextInt();
                if (a >= 3200) {
                    over3200++;
                } else {
                    useColors[a / 400] = true;
                }
            }
            int useColorsCount = 0;
            for (boolean use : useColors) {
                if (use) useColorsCount++;
            }
            System.out.printf("%s %s", useColorsCount == 0 ? 1 : useColorsCount, useColorsCount + over3200);
        }
    }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz