import java.util.*;
 
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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    }
} import java.util.*; util.* java 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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    }
} 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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    } main {
        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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int userCount = sc.nextInt(); userCount sc.nextInt() sc.nextInt sc int free = 0; free 0 Set<Integer> colors = new HashSet<>(); colors new HashSet<>() for (int i = 0; i < userCount; i++) {
            int rate = sc.nextInt() / 400;
            if (7 < rate) {
                free++;
            } else {
                colors.add(rate);
            }
        } int i = 0; int i = 0; i 0 i < userCount i userCount i++ i++ i {
            int rate = sc.nextInt() / 400;
            if (7 < rate) {
                free++;
            } else {
                colors.add(rate);
            }
        } {
            int rate = sc.nextInt() / 400;
            if (7 < rate) {
                free++;
            } else {
                colors.add(rate);
            }
        } int rate = sc.nextInt() / 400; rate sc.nextInt() / 400 sc.nextInt() sc.nextInt sc 400 if (7 < rate) {
                free++;
            } else {
                colors.add(rate);
            } 7 < rate 7 rate {
                free++;
            } free++ free {
                colors.add(rate);
            } colors.add(rate) colors.add colors rate int hold  = colors.size(); hold colors.size() colors.size colors System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free)) System.out.println System.out System System.out (hold == 0 ? 1 : hold) + " " + (hold + free) (hold == 0 ? 1 : hold) + " " + (hold + free) (hold == 0 ? 1 : hold) hold == 0 hold 0 1 hold " " (hold + free) hold free String[] args args 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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    }
} 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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    }
} Main
import java.util.*;
 
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();
        System.out.println((hold == 0 ? 1 : hold) + " " + (hold + free));
    }
}