import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + 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 ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + max);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ns[] = new int[n]; ns new int[n] n for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            ns[i] = sc.nextInt();
        } {
            ns[i] = sc.nextInt();
        } ns[i] = sc.nextInt() ns[i] ns i sc.nextInt() sc.nextInt sc int counts[] = new int[9]; counts new int[9] 9 for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        } {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        } int cr = ns[i] / 400; cr ns[i] / 400 ns[i] ns i 400 cr = cr > 8 ? 8 : cr cr cr > 8 ? 8 : cr cr > 8 cr 8 8 cr counts[cr]++ counts[cr] counts cr int min = 0 min 0 max = 0; max 0 for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (counts[i] != 0) {
                min++;
            }
        } {
            if (counts[i] != 0) {
                min++;
            }
        } if (counts[i] != 0) {
                min++;
            } counts[i] != 0 counts[i] counts i 0 {
                min++;
            } min++ min max = min + counts[counts.length-1] max min + counts[counts.length-1] min counts[counts.length-1] counts counts.length-1 counts.length counts counts.length 1 min = min == 0 ? 1 : min min min == 0 ? 1 : min min == 0 min 0 1 min System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + max);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + 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 ns[] = new int[n];
        for (int i = 0; i < n; i++) {
            ns[i] = sc.nextInt();
        }
        int counts[] = new int[9];
        for (int i = 0; i < n; i++) {
            int cr = ns[i] / 400;
            cr = cr > 8 ? 8 : cr;
            counts[cr]++;
        }
        int min = 0, max = 0;
        for (int i = 0; i < 8; i++) {
            if (counts[i] != 0) {
                min++;
            }
        }
        max = min + counts[counts.length-1];
        min = min == 0 ? 1 : min;
        System.out.println(min + " " + max);
    }
}
