import java.util.*;

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

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int userCount = sc.nextInt();

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int userCount = sc.nextInt();

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    } main {
        Scanner sc = new Scanner(System.in);
        int userCount = sc.nextInt();

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int userCount = sc.nextInt(); userCount sc.nextInt() sc.nextInt sc List<Integer> totals = new ArrayList<>(); totals new ArrayList<>() for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < userCount i userCount i++ i++ i {
            totals.add(sc.nextInt());
        } {
            totals.add(sc.nextInt());
        } totals.add(sc.nextInt()) totals.add totals sc.nextInt() sc.nextInt sc int overBuyer = 0; overBuyer 0 int[] count = new int[8]; count new int[8] 8 for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        } int j = 0; int j = 0; j 0 j < totals.size() j totals.size() totals.size totals j++ j++ j {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        } {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        } int total = totals.get(j); total totals.get(j) totals.get totals j if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 399 total 399 {
                count[0]++;
            } count[0]++ count[0] count 0 if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 799 total 799 {
                count[1]++;
            } count[1]++ count[1] count 1 if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 1199 total 1199 {
                count[2]++;
            } count[2]++ count[2] count 2 if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 1599 total 1599 {
                count[3]++;
            } count[3]++ count[3] count 3 if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 1999 total 1999 {
                count[4]++;
            } count[4]++ count[4] count 4 if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 2399 total 2399 {
                count[5]++;
            } count[5]++ count[5] count 5 if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 2799 total 2799 {
                count[6]++;
            } count[6]++ count[6] count 6 if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            } total <= 3199 total 3199 {
                count[7]++;
            } count[7]++ count[7] count 7 if (3200 <= total) {
                overBuyer++;
            } 3200 <= total 3200 total {
                overBuyer++;
            } overBuyer++ overBuyer int min = 0; min 0 int max = 0; max 0 int exist = 0; exist 0 for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        } int c = 0; int c = 0; c 0 c < count.length c count.length count count.length c++ c++ c {
            if (count[c] != 0) {
                exist++;
            }
        } {
            if (count[c] != 0) {
                exist++;
            }
        } if (count[c] != 0) {
                exist++;
            } count[c] != 0 count[c] count c 0 {
                exist++;
            } exist++ exist max = exist + overBuyer max exist + overBuyer exist overBuyer if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        } exist != 0 exist 0 {
            min = exist;
        } min = exist min exist {
            min = 1;
        } min = 1 min 1 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 userCount = sc.nextInt();

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int userCount = sc.nextInt();

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    }
} Main
import java.util.*;

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

        List<Integer> totals = new ArrayList<>();
        for (int i = 0; i < userCount; i++) {
            totals.add(sc.nextInt());
        }

        int overBuyer = 0;
        int[] count = new int[8];
        for (int j = 0; j < totals.size(); j++) {
            int total = totals.get(j);
            if (total <= 399) {
                count[0]++;
            } else if (total <= 799) {
                count[1]++;
            } else if (total <= 1199) {
                count[2]++;
            } else if (total <= 1599) {
                count[3]++;
            } else if (total <= 1999) {
                count[4]++;
            } else if (total <= 2399) {
                count[5]++;
            } else if (total <= 2799) {
                count[6]++;
            } else if (total <= 3199) {
                count[7]++;
            } else if (3200 <= total) {
                overBuyer++;
            }
        }

        int min = 0;
        int max = 0;
        int exist = 0;
        for (int c = 0; c < count.length; c++) {
            if (count[c] != 0) {
                exist++;
            }
        }
        max = exist + overBuyer;
        if (exist != 0) {
            min = exist;
        } else {
            min = 1;
        }

        System.out.println(min + " " + max);
    }
}